|
@@ -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()
|