From 30af0cbd9afb5ccb513d8b5c5e3310c42436e1ec Mon Sep 17 00:00:00 2001 From: ZyanKLee Date: Mon, 29 Mar 2021 10:06:08 +0200 Subject: [PATCH] allow inline build with obs-studio when replacing CMAKE_SOURCE_DIR with CMAKE_CURRENT_SOURCE_DIR in the CMakeLists.txt this should allow for building the plugin directly inside of obs-studio as well as separately --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0de5f1f1..b027a051 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,8 +72,8 @@ include_directories( "${LIBOBS_INCLUDE_DIR}/../UI/obs-frontend-api" ${Qt5Core_INCLUDES} ${Qt5Widgets_INCLUDES} - "${CMAKE_SOURCE_DIR}/deps/asio/asio/include" - "${CMAKE_SOURCE_DIR}/deps/websocketpp") + "${CMAKE_CURRENT_SOURCE_DIR}/deps/asio/asio/include" + "${CMAKE_CURRENT_SOURCE_DIR}/deps/websocketpp") target_link_libraries(obs-websocket libobs