From 4ed16ac325ed9205d08fe5dc51404738d25be855 Mon Sep 17 00:00:00 2001 From: arvindcheru <90783369+arvindcheru@users.noreply.github.com> Date: Tue, 19 Oct 2021 21:16:57 -0400 Subject: [PATCH] Lib, include target reorg --- hipcub/CMakeLists.txt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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)