2020-06-05 03:20:25 +08:00
|
|
|
diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake
|
|
|
|
index 965f1ec..cf2acf4 100644
|
|
|
|
--- a/cmake/SearchForStuff.cmake
|
|
|
|
+++ b/cmake/SearchForStuff.cmake
|
|
|
|
@@ -53,10 +53,9 @@ if (NOT PKG_CONFIG_FOUND)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT DEFINED USE_INTERNAL_URDF OR NOT USE_INTERNAL_URDF)
|
|
|
|
- # check for urdfdom with pkg-config
|
|
|
|
- pkg_check_modules(URDF urdfdom>=1.0)
|
|
|
|
+ find_package(urdfdom CONFIG REQUIRED)
|
|
|
|
|
|
|
|
- if (NOT URDF_FOUND)
|
|
|
|
+ if (NOT urdfdom_FOUND)
|
2021-01-19 20:09:54 +01:00
|
|
|
find_package(urdfdom)
|
|
|
|
if (urdfdom_FOUND)
|
|
|
|
set(URDF_INCLUDE_DIRS ${urdfdom_INCLUDE_DIRS})
|