You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Merge branch 'fix-swig-flags' into opencv_build_config
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user