diff Resources/CMake/BoostConfiguration.cmake @ 1094:1b905ad6c913

Replace wconv by iconv under Windows
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Aug 2014 15:42:19 +0200
parents 27d256e0b458
children 44f139b62108
line wrap: on
line diff
--- a/Resources/CMake/BoostConfiguration.cmake	Tue Aug 05 13:08:41 2014 +0200
+++ b/Resources/CMake/BoostConfiguration.cmake	Tue Aug 05 15:42:19 2014 +0200
@@ -76,9 +76,14 @@
       ${BOOST_SOURCES_DIR}/libs/thread/src/win32/tss_pe.cpp
       ${BOOST_FILESYSTEM_SOURCES_DIR}/windows_file_codecvt.cpp
       )
-    add_definitions(
-      -DBOOST_LOCALE_WITH_WCONV=1
-      )
+
+    # Starting with release 0.8.2, Orthanc statically links against
+    # libiconv, even on Windows. Indeed, the "WCONV" library of
+    # Windows XP seems not to support properly several codepages
+    # (notably "Latin3", "Hebrew", and "Arabic").
+
+    # add_definitions(-DBOOST_LOCALE_WITH_WCONV=1)
+    include(${ORTHANC_ROOT}/Resources/CMake/LibIconvConfiguration.cmake)
 
   else()
     message(FATAL_ERROR "Support your platform here")