diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-20 08:21:09 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-20 08:21:09 +0000 |
| commit | 2563807f388b9dd86a41c8f8b3254f3422b539e5 (patch) | |
| tree | ceef4ddace214deb695297d026e4edffd97f9276 /0001-adapt-GeographicLib-discovery-for-openEuler.patch | |
| parent | a07298bee4d75b7aee006395a9aa96069a4bc849 (diff) | |
automatic import of ros-humble-easynav-fusion-localizer
Diffstat (limited to '0001-adapt-GeographicLib-discovery-for-openEuler.patch')
| -rw-r--r-- | 0001-adapt-GeographicLib-discovery-for-openEuler.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/0001-adapt-GeographicLib-discovery-for-openEuler.patch b/0001-adapt-GeographicLib-discovery-for-openEuler.patch new file mode 100644 index 0000000..246a16d --- /dev/null +++ b/0001-adapt-GeographicLib-discovery-for-openEuler.patch @@ -0,0 +1,18 @@ +--- a/localizers/easynav_fusion_localizer/CMakeLists.txt ++++ b/localizers/easynav_fusion_localizer/CMakeLists.txt +@@ -32,9 +32,12 @@ + find_package(Eigen3 REQUIRED NO_MODULE) + find_package(yaets REQUIRED) + +-# Geographiclib installs FindGeographicLib.cmake to this non-standard location +-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/usr/share/cmake/geographiclib/") +-find_package(GeographicLib REQUIRED) ++find_package(GeographicLib CONFIG QUIET) ++if(NOT GeographicLib_FOUND) ++ # GeographicLib may also be provided via a Find module on some distributions. ++ list(APPEND CMAKE_MODULE_PATH "/usr/share/cmake/geographiclib/") ++ find_package(GeographicLib REQUIRED) ++endif() + + include_directories(${GeographicLib_INCLUDE_DIRS}) + |
