Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion deps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ else()
FetchContent_GetProperties(eigen)
if(NOT eigen_POPULATED)
FetchContent_Populate(eigen) # NOTE: this form was deprecated in 3.30, we set CMP0169 to silence the warning

include(EigenChecker)
eigen3checker(${eigen_SOURCE_DIR} 3.3)
endif()
Expand Down Expand Up @@ -151,6 +151,13 @@ endif()
if (NOT TARGET nanort)
add_library(nanort INTERFACE)
target_include_directories(nanort INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/nanort/include>)

# For backward compatibility, we need to make a symlink in the build directory.
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/nanort)
file(CREATE_LINK
${CMAKE_CURRENT_SOURCE_DIR}/nanort/include/nanort.h
${CMAKE_CURRENT_BINARY_DIR}/include/nanort/nanort.h SYMBOLIC)
target_include_directories(nanort INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>)
endif()

if (NOT TARGET nanoflann)
Expand Down
Loading