Skip to content

Commit 0a673f9

Browse files
committed
Add GeographicLib to vcpkg
1 parent 9ebe7d6 commit 0a673f9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/vcpkg.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ jobs:
100100
boost-timer
101101
tbb
102102
pybind11
103+
geographiclib
103104
104105
- name: On Failure, upload vcpkg logs
105106
if: failure()
@@ -155,6 +156,7 @@ jobs:
155156
-DGTSAM_USE_SYSTEM_EIGEN=OFF \
156157
-DGTSAM_USE_SYSTEM_METIS=OFF \
157158
-DGTSAM_USE_SYSTEM_PYBIND=ON \
159+
-DGTSAM_ENABLE_GEOGRAPHICLIB=ON \
158160
-DGTSAM_SUPPORT_NESTED_DISSECTION=ON \
159161
-DCTEST_EXTRA_ARGS='${{ matrix.ctest_extra_flags }}' \
160162
-DPYTEST_EXTRA_ARGS='${{ matrix.pytest_extra_flags }}'

cmake/HandleGeographicLib.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ if(NOT GeographicLib_FOUND)
2828
endif()
2929
endif()
3030

31-
set(GTSAM_HAVE_GEOGRAPHICLIB ${GeographicLib_FOUND})
31+
set(GTSAM_HAVE_GEOGRAPHICLIB ${GeographicLib_FOUND} PARENT_SCOPE)
3232

3333
if(TARGET GeographicLib::GeographicLib)
3434
message(STATUS "Using GeographicLib: ${GeographicLib_LIBRARY}")
35+
message(STATUS "GTSAM_HAVE_GEOGRAPHICLIB: ${GTSAM_HAVE_GEOGRAPHICLIB}")
3536
else()
3637
message(STATUS "GeographicLib not found; Relevant tests disabled.")
3738
endif()

0 commit comments

Comments
 (0)