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:
jp9000
2018-01-23 20:57:48 -08:00
parent 4eb5be4903
commit dce311cf1a
4 changed files with 10 additions and 4 deletions

View File

@@ -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)