deps/obs-scripting: Make ENABLE_SCRIPTING a user variable
Makes it so that the scripting cmake variable ENABLE_SCRIPTING is a user variable rather than a global internal cmake variable, and defers the internal global cmake variable to SCRIPTING_ENABLED instead.
This commit is contained in:
7
deps/obs-scripting/CMakeLists.txt
vendored
7
deps/obs-scripting/CMakeLists.txt
vendored
@@ -1,4 +1,9 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
if(NOT ENABLE_SCRIPTING)
|
||||
return()
|
||||
endif()
|
||||
|
||||
project(obs-scripting)
|
||||
|
||||
if(MSVC)
|
||||
@@ -46,7 +51,7 @@ else()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(ENABLE_SCRIPTING ON CACHE BOOL "" FORCE)
|
||||
set(SCRIPTING_ENABLED ON CACHE BOOL "Interal global cmake variable" FORCE)
|
||||
|
||||
if(UI_ENABLED)
|
||||
set(EXTRA_LIBS obs-frontend-api)
|
||||
|
Reference in New Issue
Block a user