Mercurial > hg > orthanc
changeset 3579:74fc2a3b43bb
-DBOOST_LEXICAL_CAST_ASSUME_C_LOCALE
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Nov 2019 09:44:46 +0100 |
parents | 8e9e0739d3e8 |
children | 46a8050583a1 |
files | Resources/CMake/BoostConfiguration.cmake |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/BoostConfiguration.cmake Tue Nov 19 17:27:25 2019 +0100 +++ b/Resources/CMake/BoostConfiguration.cmake Wed Nov 20 09:44:46 2019 +0100 @@ -107,6 +107,13 @@ -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_LOCALE_NO_LIB + + # In static builds, explicitly prevent Boost from using the system + # locale in lexical casts. This is notably important if + # "boost::lexical_cast<double>()" is applied to strings containing + # "," instead of "." as decimal separators. Check out function + # "OrthancStone::LinearAlgebra::ParseVector()". + -DBOOST_LEXICAL_CAST_ASSUME_C_LOCALE ) set(BOOST_SOURCES