diff --git a/hipcub/CMakeLists.txt b/hipcub/CMakeLists.txt index 68f5dccd..7fe153a8 100644 --- a/hipcub/CMakeLists.txt +++ b/hipcub/CMakeLists.txt @@ -36,7 +36,7 @@ target_include_directories(hipcub $ $ $ - $ + $ ) if(HIP_COMPILER STREQUAL "hcc" OR HIP_COMPILER STREQUAL "clang") @@ -69,13 +69,12 @@ set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR}) # does not support header-only libraries (INTERFACE targets) rocm_install_targets( TARGETS hipcub - PREFIX hipcub ) install( DIRECTORY "include/" "${PROJECT_BINARY_DIR}/hipcub/include/" - DESTINATION hipcub/include/ + DESTINATION include FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp" @@ -88,17 +87,12 @@ include(ROCMExportTargetsHeaderOnly) if(HIP_COMPILER STREQUAL "hcc" OR HIP_COMPILER STREQUAL "clang") rocm_export_targets_header_only( TARGETS hip::hipcub - PREFIX hipcub DEPENDS PACKAGE rocprim NAMESPACE hip:: ) else() rocm_export_targets_header_only( TARGETS hip::hipcub - PREFIX hipcub NAMESPACE hip:: ) endif() - -# Create symlinks -rocm_install_symlink_subdir(hipcub)