Skip to content

Commit 1750629

Browse files
committed
Define USE_RESVG for openshot target
1 parent fa9189a commit 1750629

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ if (TARGET RESVG::resvg)
360360
#include_directories(${RESVG_INCLUDE_DIRS})
361361
target_link_libraries(openshot PUBLIC RESVG::resvg)
362362

363-
# define a global var (used in the C++)
364-
add_definitions( -DUSE_RESVG=1 )
363+
target_compile_definitions(openshot PUBLIC "-DUSE_RESVG=1")
365364
set(CMAKE_SWIG_FLAGS "-DUSE_RESVG=1")
366365
endif()
367366

0 commit comments

Comments
 (0)