Compiling serialization unit tests with /bigobj on windows
parent
400e20420c
commit
8f4688fd5b
|
@ -22,6 +22,11 @@ if (GTSAM_BUILD_TESTS)
|
||||||
gtsam_add_subdir_tests(linear "${linear_local_libs}" "${gtsam-default}" "${linear_excluded_files}")
|
gtsam_add_subdir_tests(linear "${linear_local_libs}" "${gtsam-default}" "${linear_excluded_files}")
|
||||||
endif(GTSAM_BUILD_TESTS)
|
endif(GTSAM_BUILD_TESTS)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/tests/testSerializationLinear.cpp"
|
||||||
|
APPEND PROPERTY COMPILE_FLAGS "/bigobj")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Build timing scripts
|
# Build timing scripts
|
||||||
if (GTSAM_BUILD_TIMING)
|
if (GTSAM_BUILD_TIMING)
|
||||||
gtsam_add_subdir_timing(linear "${linear_local_libs}" "${gtsam-default}" "${linear_excluded_files}")
|
gtsam_add_subdir_timing(linear "${linear_local_libs}" "${gtsam-default}" "${linear_excluded_files}")
|
||||||
|
|
|
@ -21,10 +21,6 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") # might not be best test - Rich
|
||||||
list (APPEND tests_exclude "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationSLAM.cpp")
|
list (APPEND tests_exclude "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationSLAM.cpp")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
|
||||||
add_definitions("/bigobj") # testSerializationSLAM needs this
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Build tests
|
# Build tests
|
||||||
if (GTSAM_BUILD_TESTS)
|
if (GTSAM_BUILD_TESTS)
|
||||||
# Subdirectory target for tests
|
# Subdirectory target for tests
|
||||||
|
@ -50,3 +46,8 @@ if (GTSAM_BUILD_TIMING)
|
||||||
"${tests_local_libs}" "${gtsam-default};CppUnitLite" "${tests_exclude}" # Pass in linking and exclusion lists
|
"${tests_local_libs}" "${gtsam-default};CppUnitLite" "${tests_exclude}" # Pass in linking and exclusion lists
|
||||||
${is_test})
|
${is_test})
|
||||||
endif (GTSAM_BUILD_TIMING)
|
endif (GTSAM_BUILD_TIMING)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/testSerializationSLAM.cpp"
|
||||||
|
APPEND PROPERTY COMPILE_FLAGS "/bigobj")
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue