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

@@ -43,7 +43,7 @@ set(frontend-tools_UI
forms/output-timer.ui
)
if(ENABLE_SCRIPTING)
if(SCRIPTING_ENABLED)
set(frontend-tools_HEADERS
${frontend-tools_HEADERS}
scripts.hpp

View File

@@ -17,6 +17,6 @@
#endif
#define BUILD_CAPTIONS @BUILD_CAPTIONS@
#define ENABLE_SCRIPTING @ENABLE_SCRIPTING@
#define ENABLE_SCRIPTING @SCRIPTING_ENABLED@
#define COMPILE_LUA @COMPILE_LUA@
#define COMPILE_PYTHON @COMPILE_PYTHON@