plugins: Set obs-browser as a default requirement
BUILD_BROWSER is set to ON by default. If obs-browser is not present CMake will emit a fatal error.
This commit is contained in:
parent
97e038f895
commit
98ad4face2
@ -60,14 +60,13 @@ elseif("${CMAKE_SYSTEM_NAME}" MATCHES "OpenBSD")
|
||||
add_subdirectory(sndio)
|
||||
endif()
|
||||
|
||||
option(BUILD_BROWSER "Build browser plugin" OFF)
|
||||
option(BUILD_BROWSER "Build browser plugin" ON)
|
||||
if (BUILD_BROWSER)
|
||||
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/obs-browser/CMakeLists.txt")
|
||||
add_subdirectory(obs-browser)
|
||||
set(BROWSER_AVAILABLE_INTERNAL ON CACHE BOOL "Internal global cmake variable" FORCE)
|
||||
else()
|
||||
message(STATUS "obs-browser submodule not found! Please fetch submodules. obs-browser plugin disabled.")
|
||||
set(BROWSER_AVAILABLE_INTERNAL OFF CACHE BOOL "Internal global cmake variable" FORCE)
|
||||
message(FATAL_ERROR "obs-browser submodule not found! Please fetch submodules or set BUILD_BROWSER=OFF.")
|
||||
endif()
|
||||
else()
|
||||
set(BROWSER_AVAILABLE_INTERNAL OFF CACHE BOOL "Internal global cmake variable" FORCE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user