From 6a5b844bacfb3e4dc56a9d6783887d959ddbca14 Mon Sep 17 00:00:00 2001 From: cdb0y511 Date: Mon, 28 Aug 2023 04:36:49 +0800 Subject: [PATCH] fix for Undefined symbols for architecture x86_64: "Nabo::NearestNeighbourSearch (#1117) related to https://github.com/ethz-asl/libpointmatcher/issues/514 employ fix from https://github.com/ethz-asl/libpointmatcher/pull/513 --- CMakeLists.txt | 3 +++ corelib/src/CMakeLists.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 331c467e56..df34e935e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -519,6 +519,9 @@ 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)") ENDIF(libpointmatcher_FOUND) ENDIF(WITH_POINTMATCHER) diff --git a/corelib/src/CMakeLists.txt b/corelib/src/CMakeLists.txt index 1922e68801..8e12bf58a9 100644 --- a/corelib/src/CMakeLists.txt +++ b/corelib/src/CMakeLists.txt @@ -457,6 +457,7 @@ IF(libpointmatcher_FOUND) SET(LIBRARIES ${LIBRARIES} ${libpointmatcher_LIBRARIES} + libnabo::nabo ) ENDIF(libpointmatcher_FOUND)