Revert use system Eigen if found

release/4.3a0
Jose Luis Blanco Claraco 2020-10-07 17:03:20 +02:00
parent 8cb22624e0
commit 69b2cacbe7
No known key found for this signature in database
GPG Key ID: D443304FBD70A641
1 changed files with 1 additions and 9 deletions

View File

@ -1,15 +1,7 @@
###############################################################################
# Option for using system Eigen or GTSAM-bundled Eigen
# Default: Use system Eigen if it's present:
find_package(Eigen3 QUIET)
if (Eigen3_FOUND)
set(SYS_EIGEN3_DEFAULT_ ON)
else()
set(SYS_EIGEN3_DEFAULT_ OFF)
endif()
option(GTSAM_USE_SYSTEM_EIGEN "Find and use system-installed Eigen. If 'off', use the one bundled with GTSAM" ${SYS_EIGEN3_DEFAULT_})
unset(SYS_EIGEN3_DEFAULT_)
option(GTSAM_USE_SYSTEM_EIGEN "Find and use system-installed Eigen. If 'off', use the one bundled with GTSAM" OFF)
if(NOT GTSAM_USE_SYSTEM_EIGEN)
# This option only makes sense if using the embedded copy of Eigen, it is