cmake: Fix broken CMake code in 57dcdcd393

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-04-05 11:09:21 +02:00 committed by Michael Fabian Dirks
parent 57dcdcd393
commit c49bbfc1d0

View file

@ -168,9 +168,7 @@ if(TARGET libobs)
message(STATUS "${PROJECT_NAME}: Using native obs-studio.") message(STATUS "${PROJECT_NAME}: Using native obs-studio.")
CacheSet(${PropertyPrefix}OBS_NATIVE TRUE) CacheSet(${PropertyPrefix}OBS_NATIVE TRUE)
if (TARGET obs-frontend-api) if (TARGET obs-frontend-api)
CacheSet(${PropertyPrefix}_ENABLE_UI TRUE) set(HAVE_OBS_FRONTEND TRUE)
else()
CacheSet(${PropertyPrefix}_ENABLE_UI FALSE)
endif() endif()
else() else()
message(STATUS "${PROJECT_NAME}: Using packaged or remote obs-studio.") message(STATUS "${PROJECT_NAME}: Using packaged or remote obs-studio.")