Merged in fix/GeographicLib_tests (pull request #141)
Fix system-installed GeographicLib detection and run tests.release/4.3a0
commit
45c96fe7b1
|
|
@ -58,10 +58,10 @@ add_subdirectory(ceres)
|
|||
include(GeographicLib/cmake/FindGeographicLib.cmake)
|
||||
|
||||
# Set up the option to install GeographicLib
|
||||
if(GEOGRAPHICLIB_FOUND)
|
||||
set(install_geographiclib_default OFF)
|
||||
else()
|
||||
if(GEOGRAPHICLIB-NOTFOUND)
|
||||
set(install_geographiclib_default ON)
|
||||
else()
|
||||
set(install_geographiclib_default OFF)
|
||||
endif()
|
||||
option(GTSAM_INSTALL_GEOGRAPHICLIB "Build and install the 3rd-party library GeographicLib" ${install_geographiclib_default})
|
||||
|
||||
|
|
|
|||
|
|
@ -14,15 +14,10 @@ if(GTSAM_INSTALL_GEOGRAPHICLIB)
|
|||
endif()
|
||||
|
||||
else()
|
||||
if(GEOGRAPHICLIB_FOUND)
|
||||
if(GeographicLib_LIBRARIES)
|
||||
# If we're not installing, but it's already installed, use the installed one
|
||||
include_directories(${GeographicLib_INCLUDE_DIRS})
|
||||
list(APPEND test_link_libraries )
|
||||
#if(MSVC)
|
||||
# list(APPEND test_link_libraries GeographicLib_STATIC)
|
||||
#else()
|
||||
list(APPEND test_link_libraries ${GeographicLib_LIBRARIES})
|
||||
#endif()
|
||||
list(APPEND test_link_libraries ${GeographicLib_LIBRARIES})
|
||||
else()
|
||||
# We don't have GeographicLib
|
||||
set(tests_excluded testGeographicLib.cpp testGPSFactor.cpp testMagFactor.cpp)
|
||||
|
|
|
|||
Loading…
Reference in New Issue