From 158a2e10aa19159048e70bfcd38f80f657754fc2 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Fri, 7 Apr 2023 20:45:09 +0200 Subject: [PATCH] cmake: Skip plugin target setup when ENABLE_PLUGINS is not set --- plugins/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index a9a15b02f..f928f772c 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -6,6 +6,7 @@ if(OBS_CMAKE_VERSION VERSION_GREATER_EQUAL 3.0.0) if(NOT ENABLE_PLUGINS) set_property(GLOBAL APPEND PROPERTY OBS_FEATURES_DISABLED "Plugin Support") + return() endif() set_property(GLOBAL APPEND PROPERTY OBS_FEATURES_ENABLED "Plugin Support")