Skip to content

Commit

Permalink
SearchForStuff: add logic to find urdfdom without pkg-config (gazebos…
Browse files Browse the repository at this point in the history
…im#245)

Signed-off-by: Silvio Traversaro <silvio.traversaro@iit.it>
  • Loading branch information
traversaro authored and azeey committed Dec 9, 2020
1 parent 61bd93f commit 2722e42
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/SearchForStuff.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ if (NOT DEFINED USE_INTERNAL_URDF OR NOT USE_INTERNAL_URDF)
pkg_check_modules(URDF urdfdom>=1.0)

if (NOT URDF_FOUND)
if (NOT DEFINED USE_INTERNAL_URDF)
find_package(urdfdom)
if (urdfdom_FOUND)
set(URDF_INCLUDE_DIRS ${urdfdom_INCLUDE_DIRS})
# ${urdfdom_LIBRARIES} already contains absolute library filenames
set(URDF_LIBRARY_DIRS "")
set(URDF_LIBRARIES ${urdfdom_LIBRARIES})
elseif (NOT DEFINED USE_INTERNAL_URDF)
message(STATUS "Couldn't find urdfdom >= 1.0, using internal copy")
set(USE_INTERNAL_URDF true)
else()
Expand Down

0 comments on commit 2722e42

Please sign in to comment.