Explorar el Código

cmake: Skip plugin target setup when ENABLE_PLUGINS is not set

PatTheMav hace 2 años
padre
commit
158a2e10aa
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      plugins/CMakeLists.txt

+ 1 - 0
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")