Skip to content

Commit 9455e15

Browse files
committed
Update macos CI, fix geographiclib version checking
1 parent 29d4491 commit 9455e15

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/build-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
if: contains(matrix.name, 'geographiclib') && matrix.build_type == 'Release'
8989
run: |
9090
brew upgrade geographiclib --quiet || brew install geographiclib --quiet
91-
echo "GTSAM_USE_GEOGRAPHICLIB=ON" >> $GITHUB_ENV
91+
echo "GTSAM_ENABLE_GEOGRAPHICLIB=ON" >> $GITHUB_ENV
9292
9393
- name: Build and Test
9494
run: bash .github/scripts/unix.sh -t

gtsam/navigation/tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ if (NOT GTSAM_ENABLE_BOOST_SERIALIZATION)
1414
list(APPEND tests_excluded testSerializationNavigation.cpp)
1515
endif()
1616

17-
gtsamaddtestsglob(navigation "test*.cpp" "${tests_excluded}" "${test_link_libraries}")
17+
gtsamAddTestsGlob(navigation "test*.cpp" "${tests_excluded}" "${test_link_libraries}")

gtsam/navigation/tests/testGPSFactor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
using namespace gtsam;
3030
using namespace GeographicLib;
3131

32-
#if GEOGRAPHICLIB_VERSION_MINOR<37
33-
static const auto& kWGS84 = Geocentric::WGS84();
32+
#if GEOGRAPHICLIB_VERSION_MAJOR < 2 && GEOGRAPHICLIB_VERSION_MINOR<37
33+
static const auto& kWGS84 = Geocentric::WGS84;
3434
#else
3535
static const auto& kWGS84 = Geocentric::WGS84();
3636
#endif

gtsam/navigation/tests/testGeographicLib.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
// Dekalb-Peachtree Airport runway 2L
3434
static const double lat = 33.87071, lon = -84.30482, h = 274;
3535

36-
#if GEOGRAPHICLIB_VERSION_MINOR<37
37-
static const auto& kWGS84 = Geocentric::WGS84();
36+
#if GEOGRAPHICLIB_VERSION_MAJOR < 2 && GEOGRAPHICLIB_VERSION_MINOR<37
37+
static const auto& kWGS84 = Geocentric::WGS84;
3838
#else
3939
static const auto& kWGS84 = Geocentric::WGS84();
4040
#endif

0 commit comments

Comments
 (0)