# HG changeset patch # User Sebastien Jodogne # Date 1550312239 -3600 # Node ID ae68bf751187e3266eb787e943d3b2fb294937ab # Parent 8b091a51b1b9fe050ae0eef675679c2a0ca40ec7 increasing heap size of visual studio 2015 diff -r 8b091a51b1b9 -r ae68bf751187 Resources/CMake/Compiler.cmake --- a/Resources/CMake/Compiler.cmake Sat Feb 16 10:29:51 2019 +0100 +++ b/Resources/CMake/Compiler.cmake Sat Feb 16 11:17:19 2019 +0100 @@ -36,8 +36,14 @@ string(REGEX REPLACE "/MDd" "/MTd" ${flag_var} "${${flag_var}}") endforeach(flag_var) - # Add /Zm256 compiler option to Visual Studio to fix PCH errors - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zm256") + if (BOOST_LOCALE_BACKEND STREQUAL "icu") + # If compiling icu, the heap space must be further increased: + # "icudt58l_dat.c(1638339): fatal error C1060: compiler is out of heap space" + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zm512") + else() + # Add /Zm256 compiler option to Visual Studio to fix PCH errors + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zm256") + endif() add_definitions( -D_CRT_SECURE_NO_WARNINGS=1