From df8370fd2f771acf47bc333ef36497fae70461f0 Mon Sep 17 00:00:00 2001 From: Alexander Vieth Date: Wed, 25 Sep 2024 11:24:28 +0200 Subject: [PATCH] Always install all dependency headers Signed-off-by: Alexander Vieth --- hdi/dimensionality_reduction/CMakeLists.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hdi/dimensionality_reduction/CMakeLists.txt b/hdi/dimensionality_reduction/CMakeLists.txt index d45d6fc..2d0a926 100644 --- a/hdi/dimensionality_reduction/CMakeLists.txt +++ b/hdi/dimensionality_reduction/CMakeLists.txt @@ -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()