mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
sci-libs/rocThrust: don't install tests; install cmake files in a better place
Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42691 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
Disable installation of test files.
|
||||
--- a/test/CMakeLists.txt
|
||||
+++ b/test/CMakeLists.txt
|
||||
@@ -106,7 +106,6 @@ function(add_rocthrust_test TEST)
|
||||
LABELS "hip"
|
||||
)
|
||||
endif()
|
||||
- rocm_install(TARGETS ${TEST_TARGET} COMPONENT tests)
|
||||
if (WIN32 AND NOT DEFINED DLLS_COPIED)
|
||||
set(DLLS_COPIED "YES")
|
||||
set(DLLS_COPIED ${DLLS_COPIED} PARENT_SCOPE)
|
||||
@@ -266,10 +265,3 @@ if(BUILD_HIPSTDPAR_TEST)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
-
|
||||
-rocm_install(
|
||||
- FILES "${INSTALL_TEST_FILE}"
|
||||
- DESTINATION "${CMAKE_INSTALL_BINDIR}/${PROJECT_NAME}"
|
||||
- COMPONENT tests
|
||||
- RENAME "CTestTestfile.cmake"
|
||||
-)
|
||||
@@ -43,8 +43,16 @@ BDEPEND="
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.0-operator_new.patch"
|
||||
"${FILESDIR}/${PN}-6.4.1-fix-libcxx.patch"
|
||||
"${FILESDIR}/${PN}-6.4.1-no-tests-install.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed -e "s:set(ROCM_INSTALL_LIBDIR lib):set(ROCM_INSTALL_LIBDIR $(get_libdir)):" \
|
||||
-i cmake/ROCMExportTargetsHeaderOnly.cmake || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
rocm_use_hipcc
|
||||
|
||||
Reference in New Issue
Block a user