summaryrefslogtreecommitdiff
path: root/0001-adapt-GeographicLib-discovery-for-openEuler.patch
diff options
context:
space:
mode:
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})