diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-06-08 08:48:04 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-06-08 08:48:04 +0000 |
| commit | ef673b41843c0378f3d543c885f9534db6313fe0 (patch) | |
| tree | 4d1b500815ca648b2e30190b0a340e6ff9faebcf /0001-adapt-GeographicLib-discovery-for-openEuler.patch | |
| parent | 6924bf2630031d17834140822a985391c2c1c0fa (diff) | |
automatic import of robot-localizationopeneuler24.03_LTS
Diffstat (limited to '0001-adapt-GeographicLib-discovery-for-openEuler.patch')
| -rw-r--r-- | 0001-adapt-GeographicLib-discovery-for-openEuler.patch | 20 |
1 files changed, 20 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..0c9c43a --- /dev/null +++ b/0001-adapt-GeographicLib-discovery-for-openEuler.patch @@ -0,0 +1,20 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a33326e..5eefb80 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -34,9 +34,12 @@ find_package(Eigen3 REQUIRED) + find_package(Boost REQUIRED) + find_package(yaml_cpp_vendor 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() + + set(library_name rl_lib) + |
