cmake: Skip plugin target setup when ENABLE_PLUGINS is not set

This commit is contained in:
PatTheMav
2023-04-08 16:33:18 -07:00
committed by Jim
parent d6a5532394
commit 158a2e10aa
+1
View File
@@ -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")