From 09a477b420f15bfcd8c8272e8c716b8157acc486 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 19 May 2026 02:32:17 +0000 Subject: automatic import of robot-localization --- ...adapt-GeographicLib-discovery-for-openEuler.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 0001-adapt-GeographicLib-discovery-for-openEuler.patch (limited to '0001-adapt-GeographicLib-discovery-for-openEuler.patch') 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) + -- cgit v1.2.3