Mercurial > hg > orthanc
diff Resources/CMake/BoostConfiguration.cmake @ 3230:4b042ec734c1
dynamic linking against libicu
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 14 Feb 2019 20:22:33 +0100 |
parents | 4b9cfd92d1ae |
children | 32596919d729 |
line wrap: on
line diff
--- a/Resources/CMake/BoostConfiguration.cmake Thu Feb 14 19:52:35 2019 +0100 +++ b/Resources/CMake/BoostConfiguration.cmake Thu Feb 14 20:22:33 2019 +0100 @@ -228,6 +228,18 @@ if (NOT ENABLE_LOCALE) message("boost::locale is disabled") else() + set(BOOST_ICU_SOURCES + ${BOOST_SOURCES_DIR}/libs/locale/src/icu/boundary.cpp + ${BOOST_SOURCES_DIR}/libs/locale/src/icu/codecvt.cpp + ${BOOST_SOURCES_DIR}/libs/locale/src/icu/collator.cpp + ${BOOST_SOURCES_DIR}/libs/locale/src/icu/conversion.cpp + ${BOOST_SOURCES_DIR}/libs/locale/src/icu/date_time.cpp + ${BOOST_SOURCES_DIR}/libs/locale/src/icu/formatter.cpp + ${BOOST_SOURCES_DIR}/libs/locale/src/icu/icu_backend.cpp + ${BOOST_SOURCES_DIR}/libs/locale/src/icu/numeric.cpp + ${BOOST_SOURCES_DIR}/libs/locale/src/icu/time_zone.cpp + ) + list(APPEND BOOST_SOURCES ${BOOST_SOURCES_DIR}/libs/locale/src/encoding/codepage.cpp ${BOOST_SOURCES_DIR}/libs/locale/src/shared/generator.cpp @@ -263,6 +275,7 @@ add_definitions(-DBOOST_LOCALE_WITH_ICONV=1) elseif (BOOST_LOCALE_BACKEND STREQUAL "icu") add_definitions(-DBOOST_LOCALE_WITH_ICU=1) + list(APPEND BOOST_SOURCES ${BOOST_ICU_SOURCES}) else() message(FATAL_ERROR "Unsupported value for BOOST_LOCALE_BACKEND: ${BOOST_LOCALE_BACKEND}") endif() @@ -295,17 +308,7 @@ add_definitions(-DBOOST_LOCALE_WITH_ICONV=1) elseif (BOOST_LOCALE_BACKEND STREQUAL "icu") add_definitions(-DBOOST_LOCALE_WITH_ICU=1) - list(APPEND BOOST_SOURCES - ${BOOST_SOURCES_DIR}/libs/locale/src/icu/boundary.cpp - ${BOOST_SOURCES_DIR}/libs/locale/src/icu/codecvt.cpp - ${BOOST_SOURCES_DIR}/libs/locale/src/icu/collator.cpp - ${BOOST_SOURCES_DIR}/libs/locale/src/icu/conversion.cpp - ${BOOST_SOURCES_DIR}/libs/locale/src/icu/date_time.cpp - ${BOOST_SOURCES_DIR}/libs/locale/src/icu/formatter.cpp - ${BOOST_SOURCES_DIR}/libs/locale/src/icu/icu_backend.cpp - ${BOOST_SOURCES_DIR}/libs/locale/src/icu/numeric.cpp - ${BOOST_SOURCES_DIR}/libs/locale/src/icu/time_zone.cpp - ) + list(APPEND BOOST_SOURCES ${BOOST_ICU_SOURCES}) else() message(FATAL_ERROR "Unsupported value for BOOST_LOCALE_BACKEND: ${BOOST_LOCALE_BACKEND}") endif() @@ -334,6 +337,7 @@ add_definitions(-DBOOST_LOCALE_WITH_ICONV=1) elseif (BOOST_LOCALE_BACKEND STREQUAL "icu") add_definitions(-DBOOST_LOCALE_WITH_ICU=1) + list(APPEND BOOST_SOURCES ${BOOST_ICU_SOURCES}) elseif (BOOST_LOCALE_BACKEND STREQUAL "wconv") message("Using Window's wconv") else()