From 91f0cceabd5324b15f02a4689e5a59e4debdbb06 Mon Sep 17 00:00:00 2001 From: Martyn Gigg <martyn.gigg@gmail.com> Date: Wed, 1 Apr 2015 17:23:45 +0100 Subject: [PATCH] Update CMakeLists.txt --- Code/Mantid/Framework/DataObjects/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Code/Mantid/Framework/DataObjects/CMakeLists.txt b/Code/Mantid/Framework/DataObjects/CMakeLists.txt index c7ce8c418bd..aad4ee2f7ab 100644 --- a/Code/Mantid/Framework/DataObjects/CMakeLists.txt +++ b/Code/Mantid/Framework/DataObjects/CMakeLists.txt @@ -189,7 +189,13 @@ set_target_properties ( DataObjects PROPERTIES OUTPUT_NAME MantidDataObjects if (OSX_VERSION VERSION_GREATER 10.8) set_target_properties ( DataObjects PROPERTIES INSTALL_RPATH "@loader_path/../MacOS") endif () - + +# Intensive use of templated libaries can cause large objects to be generated. These require +# an additional flag in MSVC. +if ( MSVC ) + set_target_properties ( DataObjects PROPERTIES COMPILE_FLAGS "/bigobj" ) +endif () + # Add to the 'Framework' group in VS set_property ( TARGET DataObjects PROPERTY FOLDER "MantidFramework" ) -- GitLab