Skip to content

Commit 8534611

Browse files
committed
Update nanort version and include path.
1 parent 1f8a50c commit 8534611

4 files changed

Lines changed: 1272 additions & 467 deletions

File tree

deps/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ else()
7979
FetchContent_GetProperties(eigen)
8080
if(NOT eigen_POPULATED)
8181
FetchContent_Populate(eigen) # NOTE: this form was deprecated in 3.30, we set CMP0169 to silence the warning
82-
82+
8383
include(EigenChecker)
8484
eigen3checker(${eigen_SOURCE_DIR} 3.3)
8585
endif()
@@ -151,6 +151,13 @@ endif()
151151
if (NOT TARGET nanort)
152152
add_library(nanort INTERFACE)
153153
target_include_directories(nanort INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/nanort/include>)
154+
155+
# For backward compatibility, we need to make a symlink in the build directory.
156+
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/nanort)
157+
file(CREATE_LINK
158+
${CMAKE_CURRENT_SOURCE_DIR}/nanort/include/nanort.h
159+
${CMAKE_CURRENT_BINARY_DIR}/include/nanort/nanort.h SYMBOLIC)
160+
target_include_directories(nanort INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>)
154161
endif()
155162

156163
if (NOT TARGET nanoflann)

0 commit comments

Comments
 (0)