From 1b13e12065a82a13743a4bd033968ff679b554ac Mon Sep 17 00:00:00 2001 From: Shaolin Date: Sun, 9 Sep 2018 01:49:57 -0300 Subject: [PATCH] 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 --- deps/obs-scripting/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deps/obs-scripting/CMakeLists.txt b/deps/obs-scripting/CMakeLists.txt index 464127791..31087398e 100644 --- a/deps/obs-scripting/CMakeLists.txt +++ b/deps/obs-scripting/CMakeLists.txt @@ -62,10 +62,12 @@ find_package(SwigDeps QUIET 2) if(NOT SWIG_FOUND) message(STATUS "Scripting: SWIG not found; scripting disabled") + return() endif() if(NOT PYTHONLIBS_FOUND AND NOT LUAJIT_FOUND) message(STATUS "Scripting: Neither Python 3 nor Luajit was found; scripting plugin disabled") + return() endif() set(SCRIPTING_ENABLED ON CACHE BOOL "Interal global cmake variable" FORCE)