Merge branch 'fix-swig-flags' into opencv_build_config

This commit is contained in:
FeRD (Frank Dana)
2021-01-13 09:20:35 -05:00
17 changed files with 4220 additions and 81 deletions

View File

@@ -58,6 +58,12 @@ endif()
set_property(SOURCE openshot.i PROPERTY CPLUSPLUS ON)
set_property(SOURCE openshot.i PROPERTY SWIG_MODULE_NAME openshot)
# Set the SWIG_FLAGS from the library target, IFF its
# COMPILE_DEFINITIONS property is set (in practice, always true)
set(defs $<TARGET_PROPERTY:openshot,COMPILE_DEFINITIONS>)
set_property(SOURCE openshot.i PROPERTY
SWIG_FLAGS $<$<BOOL:${defs}>:-D$<JOIN:${defs}, -D>>)
### Suppress a ton of warnings in the generated SWIG C++ code
set(SWIG_CXX_FLAGS "-Wno-unused-variable -Wno-unused-function \
-Wno-deprecated-copy -Wno-class-memaccess -Wno-cast-function-type \