diff Resources/CMake/BoostConfiguration.cmake @ 1323:5a92665dee23

Sample plugin: Serve folders
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 13 Feb 2015 14:28:16 +0100
parents f16f5a8df647
children afaa55d42ddd
line wrap: on
line diff
--- a/Resources/CMake/BoostConfiguration.cmake	Fri Feb 13 13:28:01 2015 +0100
+++ b/Resources/CMake/BoostConfiguration.cmake	Fri Feb 13 14:28:16 2015 +0100
@@ -82,8 +82,11 @@
     # 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)
+    if (USE_BOOST_ICONV)
+      include(${ORTHANC_ROOT}/Resources/CMake/LibIconvConfiguration.cmake)
+    else()
+      add_definitions(-DBOOST_LOCALE_WITH_WCONV=1)
+    endif()
 
   else()
     message(FATAL_ERROR "Support your platform here")