From 029aee33c380d4404cd62450fbf62756e6e942ac Mon Sep 17 00:00:00 2001 From: tytan652 Date: Thu, 8 Apr 2021 15:32:12 +0200 Subject: [PATCH] plugins: Set obs-vst as a default requirement BUILD_VST option is added and set to ON by default. If obs-vst is not present CMake will emit a fatal error. --- plugins/CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 5dbf9726c..a39f35771 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -72,10 +72,13 @@ else() set(BROWSER_AVAILABLE_INTERNAL OFF CACHE BOOL "Internal global cmake variable" FORCE) endif() -if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/obs-vst/CMakeLists.txt") - add_subdirectory(obs-vst) -else() - message(STATUS "obs-vst submodule not found! Please fetch/update submodules. obs-vst plugin disabled.") +option(BUILD_VST "Build VST plugin" ON) +if(BUILD_VST) + if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/obs-vst/CMakeLists.txt") + add_subdirectory(obs-vst) + else() + message(FATAL_ERROR "obs-vst submodule not found! Please fetch submodules or set BUILD_VST=OFF.") + endif() endif() add_subdirectory(image-source)