From c665308fbf1d89558beb8ac7181f8f8d25844e27 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Fri, 17 Nov 2023 16:26:33 +0100 Subject: [PATCH] obs-scripting: Disable Python 3.11 support on Windows Inlined functions in Python's header files result in unresolvable symbols at link time when building in Debug config on Windows. This downgrades the upper limit on Windows to 3.10 again until a proper fix can be found. macOS is unaffected because it can link binaries with dynamic runtime lookup. --- deps/obs-scripting/cmake/python.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deps/obs-scripting/cmake/python.cmake b/deps/obs-scripting/cmake/python.cmake index aa32db340..85fd20b93 100644 --- a/deps/obs-scripting/cmake/python.cmake +++ b/deps/obs-scripting/cmake/python.cmake @@ -4,7 +4,11 @@ option(ENABLE_SCRIPTING_PYTHON "Enable Python scripting support" ON) if(ENABLE_SCRIPTING_PYTHON) add_subdirectory(obspython) - find_package(Python 3.8...<3.12 COMPONENTS Interpreter Development) + if(OS_WINDOWS) + find_package(Python 3.8...<3.11 REQUIRED Interpreter Development) + else() + find_package(Python 3.8...<3.12 REQUIRED Interpreter Development) + endif() else() target_disable_feature(obs-scripting "Python scripting support") endif()