summaryrefslogtreecommitdiff
path: root/0001-adapt-GeographicLib-discovery-for-openEuler.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-15 12:04:25 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-15 12:04:25 +0000
commit3b0977bc8fa22ef5356876df09e049fd8a237c42 (patch)
tree21ee28a1c6bef38aeae253bf5b39ed2fbbdcddaa /0001-adapt-GeographicLib-discovery-for-openEuler.patch
parent835725bde3f63a1cc791a58bc17cb74b06e7ad79 (diff)
automatic import of ros-humble-microstrain-inertial-driveropeneuler24.03_LTS_SP3
Diffstat (limited to '0001-adapt-GeographicLib-discovery-for-openEuler.patch')
-rw-r--r--0001-adapt-GeographicLib-discovery-for-openEuler.patch17
1 files changed, 17 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..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})