From: Timo Heister Date: Sat, 6 Feb 2016 02:46:38 +0000 (-0500) Subject: fix MSVC compilation by adding /bigobj X-Git-Tag: v8.4.0-rc2~28^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe99f57949d24909ac9e78a00191857f7606e416;p=dealii.git fix MSVC compilation by adding /bigobj this fixes "fatal error C1128: number of sections exceeded object file format limit" --- diff --git a/cmake/setup_compiler_flags_msvc.cmake b/cmake/setup_compiler_flags_msvc.cmake index 74e78f78f9..c4dd23a33d 100644 --- a/cmake/setup_compiler_flags_msvc.cmake +++ b/cmake/setup_compiler_flags_msvc.cmake @@ -36,6 +36,10 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "/NOMINMAX") LIST(APPEND DEAL_II_DEFINITIONS "NOMINMAX") LIST(APPEND DEAL_II_USER_DEFINITIONS "NOMINMAX") +# fix "fatal error C1128: number of sections exceeded object file format limit" +# happening in debug mode with visual studio 2015 +ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "/bigobj") + ADD_FLAGS(DEAL_II_CXX_FLAGS "/W3") #