# HG changeset patch # User Alain Mazy # Date 1756992277 -7200 # Node ID 96619f473bee2b7b2ba366c2ecd8df1bad1b9d27 # Parent 7a70d71a69bc053f0f7d86b578b678bb38857292 fix diff -r 7a70d71a69bc -r 96619f473bee OrthancServer/CMakeLists.txt --- a/OrthancServer/CMakeLists.txt Thu Sep 04 15:05:34 2025 +0200 +++ b/OrthancServer/CMakeLists.txt Thu Sep 04 15:24:37 2025 +0200 @@ -473,7 +473,10 @@ # since we use wmain on Windows, we need to tell MinGW to link with wmain if (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - target_link_options(Orthanc PRIVATE -municode) + set_property( + TARGET Orthanc + PROPERTY LINK_FLAGS "-municode" + ) endif() @@ -939,7 +942,10 @@ # since we use wmain on Windows, we need to tell MinGW to link with wmain if (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - target_link_options(OrthancRecoverCompressedFile PRIVATE -municode) + set_property( + TARGET OrthancRecoverCompressedFile + PROPERTY LINK_FLAGS "-municode" + ) endif() install(