Skip to content

Commit

Permalink
Fixed backward compatibility (xenial) from #1117
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Sep 5, 2023
1 parent 191e425 commit 2d7d0ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,14 @@ ENDIF(WITH_CVSBA)
IF(WITH_POINTMATCHER)
find_package(libpointmatcher QUIET)
IF(libpointmatcher_FOUND)
MESSAGE(STATUS "Found libpointmatcher: ${libpointmatcher_INCLUDE_DIRS}")
# Find libnabo:
find_package(libnabo REQUIRED PATHS ${LIBNABO_INSTALL_DIR})
message(STATUS "libnabo found, version ${libnabo_VERSION} (Config mode)")
MESSAGE(STATUS "Found libpointmatcher: ${libpointmatcher_INCLUDE_DIRS}")
string(FIND "${libpointmatcher_LIBRARIES}" "libnabo" value)
IF(value EQUAL -1)
# Find libnabo (Issue #1117):
find_package(libnabo REQUIRED PATHS ${LIBNABO_INSTALL_DIR})
message(STATUS "libnabo found, version ${libnabo_VERSION} (Config mode)")
SET(libpointmatcher_LIBRARIES "${libpointmatcher_LIBRARIES};libnabo::nabo")
ENDIF(value EQUAL -1)
ENDIF(libpointmatcher_FOUND)
ENDIF(WITH_POINTMATCHER)

Expand Down
1 change: 0 additions & 1 deletion corelib/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ IF(libpointmatcher_FOUND)
SET(LIBRARIES
${LIBRARIES}
${libpointmatcher_LIBRARIES}
libnabo::nabo
)
ENDIF(libpointmatcher_FOUND)

Expand Down

0 comments on commit 2d7d0ec

Please sign in to comment.