diff --git a/Codecs/CodecJPG/CMakeLists.txt b/Codecs/CodecJPG/CMakeLists.txt index b908b32..9a8e8e2 100644 --- a/Codecs/CodecJPG/CMakeLists.txt +++ b/Codecs/CodecJPG/CMakeLists.txt @@ -32,7 +32,7 @@ add_subdirectory(${libjpeg-turboFolder} ./external/libjpeg-turbo) target_include_directories(${TargetName} PRIVATE ${libjpeg-turboFolder}) target_link_libraries(${TargetName} turbojpeg) -if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") +if (${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND NOT MINGW) target_link_options(${TargetName} PUBLIC "/DELAYLOAD:$.dll") else() endif() \ No newline at end of file diff --git a/Codecs/CodecPNG/CMakeLists.txt b/Codecs/CodecPNG/CMakeLists.txt index 31b42de..169d25b 100644 --- a/Codecs/CodecPNG/CMakeLists.txt +++ b/Codecs/CodecPNG/CMakeLists.txt @@ -56,7 +56,7 @@ target_include_directories(${TargetName} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/ext target_link_libraries(${TargetName} png_shared ) target_include_directories(png_shared PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/external/zlib) -if(MSVC) +if (${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")) target_link_options(${TargetName} PUBLIC "/DELAYLOAD:$.dll") target_link_options(${TargetName} PUBLIC "/DELAYLOAD:$.dll") endif() \ No newline at end of file diff --git a/Codecs/CodecTiff/CMakeLists.txt b/Codecs/CodecTiff/CMakeLists.txt index 2fc1832..d2bc1ab 100644 --- a/Codecs/CodecTiff/CMakeLists.txt +++ b/Codecs/CodecTiff/CMakeLists.txt @@ -68,7 +68,6 @@ target_include_directories(${TargetName} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/ext target_link_libraries(${TargetName} tiff) -if(MSVC) - #set_property(TARGET tiff PROPERTY WINDOWS_EXPORT_ALL_SYMBOLS true) +if (${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND NOT MINGW) target_link_options(${TargetName} PUBLIC "/DELAYLOAD:$.dll") endif() diff --git a/External/libpsd b/External/libpsd index 2f78b03..e670ae0 160000 --- a/External/libpsd +++ b/External/libpsd @@ -1 +1 @@ -Subproject commit 2f78b031130e91477cd0d79105bc890be0382dbd +Subproject commit e670ae0be0c50a4afb83d3f1703cff1e6ca0c9ec diff --git a/ImageUtil/Source/ImageUtil.cpp b/ImageUtil/Source/ImageUtil.cpp index 82d0197..cbaac71 100644 --- a/ImageUtil/Source/ImageUtil.cpp +++ b/ImageUtil/Source/ImageUtil.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include #include