瀏覽代碼

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.
PatTheMav 1 年之前
父節點
當前提交
c665308fbf
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      deps/obs-scripting/cmake/python.cmake

+ 5 - 1
deps/obs-scripting/cmake/python.cmake

@@ -4,7 +4,11 @@ option(ENABLE_SCRIPTING_PYTHON "Enable Python scripting support" ON)
 
 
 if(ENABLE_SCRIPTING_PYTHON)
 if(ENABLE_SCRIPTING_PYTHON)
   add_subdirectory(obspython)
   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()
 else()
   target_disable_feature(obs-scripting "Python scripting support")
   target_disable_feature(obs-scripting "Python scripting support")
 endif()
 endif()