Skip to content

Commit 64c0ec6

Browse files
committed
Delay-load FreeImage on Windows
1 parent 52dc431 commit 64c0ec6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ImageCodec/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND
6262
if ( ${IMCODEC_BUILD_CODEC_TIFF})
6363
target_link_options(${TargetName} PUBLIC "/DELAYLOAD:$<TARGET_FILE_BASE_NAME:tiff>.dll")
6464
endif()
65+
if ( ${IMCODEC_BUILD_CODEC_FREEIMAGE})
66+
target_link_options(${TargetName} PUBLIC "/DELAYLOAD:$<TARGET_FILE_BASE_NAME:FreeImage>.dll")
67+
endif()
6568
endif()

0 commit comments

Comments
 (0)