fix virtual memory range for PCH exceeded

release/4.3a0
Jing Dong 2018-11-30 15:48:16 -05:00
parent 38948179f2
commit ce460eea92
1 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,10 @@ if(MSVC)
add_definitions(-DBOOST_ALL_NO_LIB)
add_definitions(-DBOOST_ALL_DYN_LINK)
endif()
# Virtual memory range for PCH exceeded on VS2015
if(MSVC_VERSION LESS 1910) # older than VS2017
add_definitions(-Zm295)
endif()
endif()
find_package(Boost 1.43 COMPONENTS serialization system filesystem thread program_options date_time timer chrono regex)