From 3b0977bc8fa22ef5356876df09e049fd8a237c42 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 15 Sep 2026 12:04:25 +0000 Subject: automatic import of ros-humble-microstrain-inertial-driver --- 0001-adapt-GeographicLib-discovery-for-openEuler.patch | 17 +++++++++++++++++ 1 file changed, 17 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..6b05bb2 --- /dev/null +++ b/0001-adapt-GeographicLib-discovery-for-openEuler.patch @@ -0,0 +1,17 @@ +--- a/microstrain_inertial_driver/CMakeLists.txt ++++ b/microstrain_inertial_driver/CMakeLists.txt +@@ -133,9 +133,12 @@ + ########### + + # Find some less ROS-y packages +-list(APPEND CMAKE_MODULE_PATH "/usr/share/cmake/geographiclib/") ++find_package(GeographicLib CONFIG QUIET) ++if(NOT GeographicLib_FOUND) ++ list(APPEND CMAKE_MODULE_PATH "/usr/share/cmake/geographiclib/") ++ find_package(GeographicLib REQUIRED) ++endif() + find_package(Eigen3 REQUIRED) +-find_package(GeographicLib REQUIRED) + + # We want to use the static library for libgeographic, but it doesn't seem to find it for us, so substitute it here + string(REGEX REPLACE "[.]so[^\\/\\s]*$" ".a" GeographicLib_LIBRARIES ${GeographicLib_LIBRARIES}) -- cgit v1.2.3