Skip to content

Commit

Permalink
Fix EXISTS resolves symlinks but add_subdirectory does not (#377)
Browse files Browse the repository at this point in the history
Co-authored-by: Ferry Schoenmakers <[email protected]>
  • Loading branch information
MCFurry and Ferry Schoenmakers authored Jul 30, 2024
1 parent 345d0b4 commit e50972b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ project(kiss_icp VERSION 1.0.0 LANGUAGES CXX)

set(CMAKE_BUILD_TYPE Release)

if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../cpp/kiss_icp/)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../cpp/kiss_icp/ AND NOT IS_SYMLINK ${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../cpp/kiss_icp ${CMAKE_CURRENT_BINARY_DIR}/kiss_icp)
else()
cmake_minimum_required(VERSION 3.18)
Expand Down

0 comments on commit e50972b

Please sign in to comment.