Skip to content

Commit bc12995

Browse files
committed
Lose the generator expressions
1 parent c7ec690 commit bc12995

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/CMakeLists.txt

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,19 @@ endif()
370370
# Link remaining dependency libraries
371371
target_link_libraries(openshot PUBLIC
372372
${LIBOPENSHOT_AUDIO_LIBRARIES}
373-
${PROFILER}
374-
$<$<BOOL:${ImageMagick_FOUND}>:${ImageMagick_LIBRARIES}>
375-
$<$<BOOL:${RESVG_FOUND}>:${RESVG_LIBRARIES}>
376-
$<$<BOOL:${BLACKMAGIC_FOUND}>:${BLACKMAGIC_LIBRARY_DIR}>)
373+
${PROFILER})
374+
375+
if(ImageMagick_FOUND)
376+
target_link_libraries(openshot PUBLIC ${ImageMagick_LIBRARIES})
377+
endif()
378+
379+
if(RESVG_FOUND)
380+
target_link_libraries(openshot PUBLIC ${RESVG_LIBRARIES})
381+
endif()
382+
383+
if(BLACKMAGIC_FOUND)
384+
target_link_libraries(openshot PUBLIC ${BLACKMAGIC_LIBRARY_DIR})
385+
endif()
377386

378387
if(WIN32)
379388
# Required for exception handling on Windows

0 commit comments

Comments
 (0)