Fix GeographicLib configuration when GTSAM_INSTALL_GEOGRAPHICLIB is toggled from ON to OFF, or when system-installed copy disappears.

release/4.3a0
chrisbeall 2019-05-18 20:52:21 -07:00
parent 22d9b162d2
commit ba09d5d676
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ add_subdirectory(ceres)
# add_subdirectory (tools)
# Find GeographicLib using the find script distributed with it
unset(GEOGRAPHICLIB_FOUND CACHE)
unset(GeographicLib_INCLUDE_DIRS CACHE)
unset(GeographicLib_LIBRARIES CACHE)
unset(GeographicLib_LIBRARY_DIRS CACHE)
include(GeographicLib/cmake/FindGeographicLib.cmake)
# Set up the option to install GeographicLib