From bba37f21b11887644c40010478c08061f0163cd2 Mon Sep 17 00:00:00 2001 From: Simon Ninon Date: Sat, 29 Apr 2017 21:03:25 -0700 Subject: [PATCH] [2.4.1] compile MSVC++ project with /bigobj option. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38dcf0a..1e7bd15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ project(${PROJECT} CXX) # compilation options ### IF (WIN32) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /O2") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /O2 /bigobj") # was causing conflics with gtest build string(REPLACE "/RTC1" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})