]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix MSVC compilation by adding /bigobj 2142/head
authorTimo Heister <timo.heister@gmail.com>
Sat, 6 Feb 2016 02:46:38 +0000 (21:46 -0500)
committerTimo Heister <timo.heister@gmail.com>
Sat, 6 Feb 2016 02:46:38 +0000 (21:46 -0500)
this fixes "fatal error C1128: number of sections exceeded object file format limit"

cmake/setup_compiler_flags_msvc.cmake

index 74e78f78f977ec00c7aef3e40efe840fbd8ce904..c4dd23a33d114aa49959fc657fd8e596ee7be098 100644 (file)
@@ -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")
 
 #

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.