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)