Commit 7c29dc9d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] use OCTOMAP_FOUND

As on some systems, we don't have OCTOMAP_INCLUDE_DIRS &
OCTOMAP_LIBRARY_DIRS but OCTOMAP_INCLUDEDIR & OCTOMAP_LIBDIR, and
therefore we get:

-- Checking for module 'octomap >= 1.6'
--   Found octomap , version 1.9.0
-- Pkg-config module octomap v1.9.0 has been detected with success.
-- FCL does not use Octomap
parent c83a604f
Pipeline #6254 passed with stage
in 27 minutes and 35 seconds
...@@ -75,7 +75,7 @@ endif () ...@@ -75,7 +75,7 @@ endif ()
search_for_boost() search_for_boost()
# Optional dependencies # Optional dependencies
add_optional_dependency("octomap >= 1.6") add_optional_dependency("octomap >= 1.6")
if (OCTOMAP_INCLUDE_DIRS AND OCTOMAP_LIBRARY_DIRS) if (OCTOMAP_FOUND)
include_directories(SYSTEM ${OCTOMAP_INCLUDE_DIRS}) include_directories(SYSTEM ${OCTOMAP_INCLUDE_DIRS})
link_directories(${OCTOMAP_LIBRARY_DIRS}) link_directories(${OCTOMAP_LIBRARY_DIRS})
SET(HPP_FCL_HAVE_OCTOMAP TRUE) SET(HPP_FCL_HAVE_OCTOMAP TRUE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment