Skip to content

Commit

Permalink
octomap: fixed regression on ubuntu 16.04
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Mar 18, 2023
1 parent ab99719 commit 1cb7f3f
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions corelib/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,21 @@ IF(ZEDOC_FOUND)
ENDIF(ZEDOC_FOUND)

IF(octomap_FOUND)
SET(PUBLIC_LIBRARIES
${PUBLIC_LIBRARIES}
octomap
)
IF(TARGET octomap)
SET(PUBLIC_LIBRARIES
${PUBLIC_LIBRARIES}
octomap
)
ELSE()
SET(PUBLIC_INCLUDE_DIRS
${PUBLIC_INCLUDE_DIRS}
${OCTOMAP_INCLUDE_DIRS}
)
SET(PUBLIC_LIBRARIES
${PUBLIC_LIBRARIES}
${OCTOMAP_LIBRARIES}
)
ENDIF()
SET(SRC_FILES
${SRC_FILES}
OctoMap.cpp
Expand Down

0 comments on commit 1cb7f3f

Please sign in to comment.