obs-scripting: Fix crashes introduced by Swig update to 4.1.0
Fixes issues introduced by https://github.com/swig/swig/pull/2238. As obs-scripting is not compatible with the SWIGPYTHON_BUILTIN, obspython needs to disable this feature.
This commit is contained in:
parent
9145e3063d
commit
e27f90fa5a
10
deps/obs-scripting/obspython/CMakeLists.txt
vendored
10
deps/obs-scripting/obspython/CMakeLists.txt
vendored
@ -21,8 +21,7 @@ endif()
|
||||
include(UseSWIG)
|
||||
|
||||
set_source_files_properties(
|
||||
obspython.i PROPERTIES USE_TARGET_INCLUDE_DIRECTORIES TRUE SWIG_FLAGS
|
||||
"-builtin;-py3")
|
||||
obspython.i PROPERTIES USE_TARGET_INCLUDE_DIRECTORIES TRUE SWIG_FLAGS "-py3")
|
||||
|
||||
swig_add_library(
|
||||
obspython
|
||||
@ -53,11 +52,8 @@ set_target_properties(obspython PROPERTIES SWIG_COMPILE_DEFINITIONS
|
||||
|
||||
if(OS_WINDOWS)
|
||||
set_target_properties(
|
||||
obspython
|
||||
PROPERTIES
|
||||
SWIG_COMPILE_DEFINITIONS
|
||||
"SWIG_TYPE_TABLE=obspython;Py_ENABLE_SHARED=1;SWIG_PYTHON_INTERPRETER_NO_DEBUG;MS_NO_COREDLL"
|
||||
)
|
||||
obspython PROPERTIES SWIG_COMPILE_DEFINITIONS
|
||||
"${_SWIG_DEFINITIONS};MS_NO_COREDLL")
|
||||
|
||||
target_link_libraries(obspython PRIVATE Python::Python)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user