From 98ad4face2d724f48799d2b4c476e7532a1c2aa7 Mon Sep 17 00:00:00 2001 From: tytan652 Date: Thu, 8 Apr 2021 15:21:11 +0200 Subject: [PATCH] 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. --- plugins/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 9495692cb..5dbf9726c 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -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)