Define USE_RESVG for openshot target

This commit is contained in:
FeRD (Frank Dana)
2020-01-11 18:11:02 -05:00
parent fa9189a96a
commit 175062913d

View File

@@ -360,8 +360,7 @@ if (TARGET RESVG::resvg)
#include_directories(${RESVG_INCLUDE_DIRS})
target_link_libraries(openshot PUBLIC RESVG::resvg)
# define a global var (used in the C++)
add_definitions( -DUSE_RESVG=1 )
target_compile_definitions(openshot PUBLIC "-DUSE_RESVG=1")
set(CMAKE_SWIG_FLAGS "-DUSE_RESVG=1")
endif()