kill system's eigency

release/4.3a0
Duy-Nguyen Ta 2017-07-27 05:07:21 -04:00
parent bbd667ad54
commit a715e064a6
2 changed files with 3 additions and 17 deletions

View File

@ -387,8 +387,6 @@ endif()
# Cython wrap # Cython wrap
if (GTSAM_INSTALL_CYTHON_TOOLBOX) if (GTSAM_INSTALL_CYTHON_TOOLBOX)
add_subdirectory(cython) 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() endif()
@ -522,13 +520,6 @@ endif()
message(STATUS "Cython toolbox flags ") message(STATUS "Cython toolbox flags ")
print_config_flag(${GTSAM_INSTALL_CYTHON_TOOLBOX} "Install Cython toolbox ") print_config_flag(${GTSAM_INSTALL_CYTHON_TOOLBOX} "Install Cython toolbox ")
print_config_flag(${GTSAM_BUILD_WRAP} "Build Wrap ") 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 "===============================================================") message(STATUS "===============================================================")
# Print warnings at the end # Print warnings at the end

View File

@ -4,14 +4,9 @@ include(GtsamCythonWrap)
# Create the cython toolbox for the gtsam library # Create the cython toolbox for the gtsam library
if (GTSAM_INSTALL_CYTHON_TOOLBOX) if (GTSAM_INSTALL_CYTHON_TOOLBOX)
# build and include eigency # build and include eigency
if (GTSAM_USE_SYSTEM_EIGENCY) add_subdirectory(eigency)
find_package(Eigency REQUIRED) include_directories(eigency)
include_directories(${EIGENCY_INCLUDE_DIRS}) file(COPY eigency DESTINATION ".") # so eigency's cython headers can be found when cythonizing gtsam
else()
add_subdirectory(eigency)
include_directories(eigency)
file(COPY eigency DESTINATION ".")
endif()
# wrap gtsam # wrap gtsam
add_custom_target(gtsam_header DEPENDS "../gtsam.h") add_custom_target(gtsam_header DEPENDS "../gtsam.h")