mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
cmake: Fix an error when SWIG isn't found
obs-scripting CMakeList.txt expects SWIG, Python3 or Luajit to enable scripting so in case of not finding just return and don't abort the configuration
This commit is contained in:
parent
b5f2f4d05f
commit
1b13e12065
2
deps/obs-scripting/CMakeLists.txt
vendored
2
deps/obs-scripting/CMakeLists.txt
vendored
@ -62,10 +62,12 @@ find_package(SwigDeps QUIET 2)
|
|||||||
|
|
||||||
if(NOT SWIG_FOUND)
|
if(NOT SWIG_FOUND)
|
||||||
message(STATUS "Scripting: SWIG not found; scripting disabled")
|
message(STATUS "Scripting: SWIG not found; scripting disabled")
|
||||||
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT PYTHONLIBS_FOUND AND NOT LUAJIT_FOUND)
|
if(NOT PYTHONLIBS_FOUND AND NOT LUAJIT_FOUND)
|
||||||
message(STATUS "Scripting: Neither Python 3 nor Luajit was found; scripting plugin disabled")
|
message(STATUS "Scripting: Neither Python 3 nor Luajit was found; scripting plugin disabled")
|
||||||
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(SCRIPTING_ENABLED ON CACHE BOOL "Interal global cmake variable" FORCE)
|
set(SCRIPTING_ENABLED ON CACHE BOOL "Interal global cmake variable" FORCE)
|
||||||
|
Loading…
Reference in New Issue
Block a user