Add /bigobj compiler flag when MSVC is used (#520)
authorAlpar Juttner <alpar@cs.elte.hu>
Thu, 02 Apr 2015 10:03:35 +0200
changeset 1122f05270f176d9
parent 1121 1d80ec7d17eb
child 1123 18c89646185e
Add /bigobj compiler flag when MSVC is used (#520)
CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Wed Apr 01 18:13:30 2015 +0200
     1.2 +++ b/CMakeLists.txt	Thu Apr 02 10:03:35 2015 +0200
     1.3 @@ -168,6 +168,7 @@
     1.4  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LEMON_CXX_WARNING_FLAGS}")
     1.5  
     1.6  IF(MSVC)
     1.7 +  SET(CMAKE_CXX_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}")
     1.8    SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING
     1.9      "Flags used by the C++ compiler during maintainer builds."
    1.10      )