File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,13 @@ macro(plugin_compilation name varName foundName optionName defineName)
2929 target_sources (heif PRIVATE ${${optionName} _sources})
3030 target_compile_definitions (heif PRIVATE HAVE_${defineName} =1)
3131 target_include_directories (heif PRIVATE ${${varName} _INCLUDE_DIRS})
32- target_link_libraries (heif PRIVATE ${${varName} _LIBRARIES})
32+ target_link_directories (heif PRIVATE ${${varName} _LINK_DIRS})
33+ if (${varName} _DEBUG_LIBRARY)
34+ target_link_libraries (heif PRIVATE debug ${${varName} _DEBUG_LIBRARY})
35+ target_link_libraries (heif PRIVATE optimized ${${varName} _LIBRARIES})
36+ else ()
37+ target_link_libraries (heif PRIVATE ${${varName} _LIBRARIES})
38+ endif ()
3339 endif ()
3440
3541 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${${varName} _CFLAGS}" )
You can’t perform that action at this time.
0 commit comments