# HG changeset patch # User Sebastien Jodogne # Date 1574239486 -3600 # Node ID 74fc2a3b43bb5e50a61d20ba6396786e5bd427de # Parent 8e9e0739d3e801f3051d213b4269c29024a54e82 -DBOOST_LEXICAL_CAST_ASSUME_C_LOCALE diff -r 8e9e0739d3e8 -r 74fc2a3b43bb Resources/CMake/BoostConfiguration.cmake --- 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()" 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