changeset 5978:2d482a49232e

fix mac os universal builds
author Alain Mazy <am@orthanc.team>
date Mon, 20 Jan 2025 10:15:03 +0100
parents fe506dc874a1
children 02f0953c027d
files OrthancFramework/Resources/CMake/Compiler.cmake
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Resources/CMake/Compiler.cmake	Sat Jan 18 17:17:04 2025 +0100
+++ b/OrthancFramework/Resources/CMake/Compiler.cmake	Mon Jan 20 10:15:03 2025 +0100
@@ -239,7 +239,9 @@
   add_definitions(
     -D_XOPEN_SOURCE=1
     )
-  link_libraries(iconv)
+  
+  # Linking with iconv breaks the Universal builds on modern compilers
+  # link_libraries(iconv)
 
 elseif (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
   message("Building using Emscripten (for WebAssembly or asm.js targets)")