diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2011-01-29 14:35:24 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2011-01-29 14:35:24 +0100 |
commit | 157a5040d5372b65a9669a7f84c8c8cef82b6ee6 (patch) | |
tree | 03988732c9b6317a3297ca318eedfa20eba551ad /cmake | |
parent | a1f5ea8954bfe1818a42a5ffcc5cd40fe5878a97 (diff) |
Added the /bigobj flag in order to enable compilation with MSVC when EIGEN_SPLIT_LARGE_TESTS is not set.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/EigenTesting.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index f3dabfe6f..63e11f2c1 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -27,6 +27,10 @@ macro(ei_add_test_internal testname testname_with_suffix) endif(EIGEN_NO_ASSERTION_CHECKING) ei_add_target_property(${targetname} COMPILE_FLAGS "-DEIGEN_TEST_FUNC=${testname}") + + if(MSVC AND NOT EIGEN_SPLIT_LARGE_TESTS) + ei_add_target_property(${targetname} COMPILE_FLAGS "/bigobj") + endif() # let the user pass flags. if(${ARGC} GREATER 2) @@ -51,7 +55,7 @@ macro(ei_add_test_internal testname testname_with_suffix) # notice: no double quotes around ${libs_to_link} here. It may be a list. target_link_libraries(${targetname} ${libs_to_link}) endif() - endif() + endif() if(WIN32) if(CYGWIN) |