Skip to content

Commit

Permalink
Always install all dependency headers
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Vieth <vieth.alexander@gmx.net>
  • Loading branch information
alxvth committed Sep 25, 2024
1 parent 73eec3f commit df8370f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions hdi/dimensionality_reduction/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,12 @@ if(${HDILib_INSTALL})
)

# Install dependency headers
if(NOT DEFINED IN_CONAN_BUILD)
if(DEFINED flann_INCLUDE_DIR)
install(DIRECTORY "${flann_INCLUDE_DIR}/" DESTINATION "${CMAKE_INSTALL_PREFIX}/include" COMPONENT FLANN_HEADERS)
else()
get_target_property(FLANN_INCLUDE_DIR ${FLANN_TARGET} INTERFACE_INCLUDE_DIRECTORIES)
if(FLANN_INCLUDE_DIR)
install(DIRECTORY "${FLANN_INCLUDE_DIR}/" DESTINATION "${CMAKE_INSTALL_PREFIX}/include" COMPONENT FLANN_HEADERS)
endif()
if(DEFINED flann_INCLUDE_DIR)
install(DIRECTORY "${flann_INCLUDE_DIR}/" DESTINATION "${CMAKE_INSTALL_PREFIX}/include" COMPONENT FLANN_HEADERS)
else()
get_target_property(FLANN_INCLUDE_DIR ${FLANN_TARGET} INTERFACE_INCLUDE_DIRECTORIES)
if(FLANN_INCLUDE_DIR)
install(DIRECTORY "${FLANN_INCLUDE_DIR}/" DESTINATION "${CMAKE_INSTALL_PREFIX}/include" COMPONENT FLANN_HEADERS)
endif()
endif()

Expand Down

0 comments on commit df8370f

Please sign in to comment.