add option to use system eigency (default off)

release/4.3a0
Duy-Nguyen Ta 2017-07-23 14:57:02 -04:00
parent 0c3424d851
commit 3e547c89bb
2 changed files with 12 additions and 0 deletions

View File

@ -387,6 +387,8 @@ endif()
# Cython wrap
if (GTSAM_INSTALL_CYTHON_TOOLBOX)
add_subdirectory(cython)
# Option for using system Eigency or GTSAM-bundled Eigency
option(GTSAM_USE_SYSTEM_EIGENCY "Find and use system-installed Eigency. If 'off', use the one bundled with GTSAM" OFF)
endif()
@ -520,6 +522,13 @@ endif()
message(STATUS "Cython toolbox flags ")
print_config_flag(${GTSAM_INSTALL_CYTHON_TOOLBOX} "Install Cython toolbox ")
print_config_flag(${GTSAM_BUILD_WRAP} "Build Wrap ")
if (GTSAM_INSTALL_CYTHON_TOOLBOX)
if(GTSAM_USE_SYSTEM_EIGENCY)
message(STATUS " Use System Eigency : Yes")
else()
message(STATUS " Use System Eigency : No")
endif()
endif()
message(STATUS "===============================================================")
# Print warnings at the end

View File

@ -71,3 +71,6 @@
// Support Metis-based nested dissection
#cmakedefine GTSAM_TANGENT_PREINTEGRATION
// For Cython wrapper: Whether we are using system-Eigency or our own copied version
#cmakedefine GTSAM_USE_SYSTEM_EIGENCY