Compile serialization.cpp with /bigobj on windows
parent
8f9d5ec2e2
commit
1c52935cca
|
@ -138,6 +138,12 @@ set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/slam/dataset.cpp"
|
||||||
"SOURCE_TREE_DATASET_DIR=\"${CMAKE_SOURCE_DIR}/examples/Data\""
|
"SOURCE_TREE_DATASET_DIR=\"${CMAKE_SOURCE_DIR}/examples/Data\""
|
||||||
"INSTALLED_DATASET_DIR=\"${GTSAM_TOOLBOX_INSTALL_PATH}/gtsam_examples/Data\"")
|
"INSTALLED_DATASET_DIR=\"${GTSAM_TOOLBOX_INSTALL_PATH}/gtsam_examples/Data\"")
|
||||||
|
|
||||||
|
# Special cases
|
||||||
|
if(MSVC)
|
||||||
|
set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/slam/serialization.cpp"
|
||||||
|
APPEND PROPERTY COMPILE_FLAGS "/bigobj")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Generate and install config file
|
# Generate and install config file
|
||||||
configure_file(config.h.in config.h)
|
configure_file(config.h.in config.h)
|
||||||
install(FILES ${CMAKE_BINARY_DIR}/gtsam/config.h DESTINATION include/gtsam)
|
install(FILES ${CMAKE_BINARY_DIR}/gtsam/config.h DESTINATION include/gtsam)
|
||||||
|
|
Loading…
Reference in New Issue