diff --git a/deps/obs-scripting/cmake/python.cmake b/deps/obs-scripting/cmake/python.cmake index 0cf5170f84f4a2..7eb98260e69b12 100644 --- a/deps/obs-scripting/cmake/python.cmake +++ b/deps/obs-scripting/cmake/python.cmake @@ -7,6 +7,11 @@ if(ENABLE_SCRIPTING_PYTHON) if(OS_WINDOWS) find_package(Python 3.8...<3.11 REQUIRED Interpreter Development) + elseif( + OS_LINUX + OR OS_FREEBSD + OR OS_OPENBSD) + find_package(Python 3.8 REQUIRED Interpreter Development) else() find_package(Python 3.8...<3.12 REQUIRED Interpreter Development) endif() diff --git a/deps/obs-scripting/obspython/CMakeLists.txt b/deps/obs-scripting/obspython/CMakeLists.txt index 9d17384cc386c9..e90b1499546f8b 100644 --- a/deps/obs-scripting/obspython/CMakeLists.txt +++ b/deps/obs-scripting/obspython/CMakeLists.txt @@ -14,7 +14,13 @@ if(POLICY CMP0094) cmake_policy(SET CMP0094 NEW) endif() -find_package(Python 3.8...<3.12 REQUIRED Interpreter Development) +if(OS_LINUX + OR OS_FREEBSD + OR OS_OPENBSD) + find_package(Python 3.8 REQUIRED Interpreter Development) +else() + find_package(Python 3.8...<3.12 REQUIRED Interpreter Development) +endif() find_package(SWIG 4 REQUIRED) include(UseSWIG)