mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Set ENABLE_UI and DISABLE_UI as root CMake variables
Allows for projects other than UI to be able to reference these CMake variables.
This commit is contained in:
parent
f06f85fd56
commit
260fb571b8
@ -103,8 +103,14 @@ option(BUILD_TESTS "Build test directory (includes test sources and possibly a p
|
||||
mark_as_advanced(BUILD_TESTS)
|
||||
|
||||
if(NOT INSTALLER_RUN)
|
||||
add_subdirectory(deps)
|
||||
option(ENABLE_UI "Enables the OBS user interfaces" ON)
|
||||
if(DISABLE_UI OR NOT ENABLE_UI)
|
||||
set(UI_ENABLED FALSE)
|
||||
else()
|
||||
set(UI_ENABLED TRUE)
|
||||
endif()
|
||||
|
||||
add_subdirectory(deps)
|
||||
|
||||
if(WIN32)
|
||||
add_subdirectory(libobs-d3d11)
|
||||
|
@ -1,4 +1,3 @@
|
||||
option(ENABLE_UI "Enables the OBS user interfaces" ON)
|
||||
if(DISABLE_UI)
|
||||
message(STATUS "UI disabled")
|
||||
return()
|
||||
|
Loading…
Reference in New Issue
Block a user