Skip to content

Commit 9bf76c3

Browse files
authored
fix: CMakeLists check if build from obs (#24)
1 parent dafe3b2 commit 9bf76c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include(helpers)
1313

1414
add_library(obs-moq MODULE)
1515

16-
if(NOT BUILD_PLUGIN)
16+
if(NOT ${BUILD_PLUGIN})
1717
find_package(libobs REQUIRED)
1818
endif()
1919
target_link_libraries(obs-moq PRIVATE OBS::libobs)
@@ -73,7 +73,7 @@ target_sources(
7373
src/moq-source.h
7474
)
7575

76-
if(BUILD_PLUGIN)
76+
if(${BUILD_PLUGIN})
7777
set_target_properties_plugin(obs-moq PROPERTIES OUTPUT_NAME ${_name})
7878
else()
7979
set_target_properties_obs(obs-moq PROPERTIES FOLDER plugins PREFIX "")

0 commit comments

Comments
 (0)