summaryrefslogtreecommitdiff
path: root/sci-libs/hipCUB/files/hipCUB-7.0.1-no-tests-install.patch
blob: 52dc898b6d7b590e810d2c6585b5184c3d97c943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Exclude test-related files from installation
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -47,16 +47,8 @@ function(add_relative_test test_name test_target)
     else()
         add_test(NAME "${test_name}" COMMAND "./${rel_path}")
     endif()
-    rocm_install(TARGETS ${test_target} COMPONENT tests)
     file(APPEND "${INSTALL_TEST_FILE}" "add_test(${test_name} \"../${EXE_NAME}\")\n")
 endfunction()
 
 # hipCUB tests
 add_subdirectory(hipcub)
-
-rocm_install(
-    FILES "${INSTALL_TEST_FILE}"
-    DESTINATION "${CMAKE_INSTALL_BINDIR}/${PROJECT_NAME}"
-    COMPONENT tests
-    RENAME "CTestTestfile.cmake"
-)