File: 0001-install-cmake-config-to-share.patch

package info (click to toggle)
hipcub 6.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,528 kB
  • sloc: cpp: 56,703; python: 564; sh: 365; makefile: 118; xml: 26
file content (25 lines) | stat: -rw-r--r-- 963 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Sun, 12 Feb 2023 01:15:13 -0700
Subject: install cmake config to share

The ROCM_INSTALL_LIBDIR is only used for determining the install
location of the exported cmake config files. This change places those
files in /usr/share, which is more consistent with other header-only
libraries, such as libcub-dev.
---
 cmake/ROCMExportTargetsHeaderOnly.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/ROCMExportTargetsHeaderOnly.cmake b/cmake/ROCMExportTargetsHeaderOnly.cmake
index 3f7d814..2c8088d 100644
--- a/cmake/ROCMExportTargetsHeaderOnly.cmake
+++ b/cmake/ROCMExportTargetsHeaderOnly.cmake
@@ -29,7 +29,7 @@ include(GNUInstallDirs)
 include(ROCMPackageConfigHelpers)
 include(ROCMInstallTargets)
 
-set(ROCM_INSTALL_LIBDIR lib)
+set(ROCM_INSTALL_LIBDIR share)
 
 function(rocm_write_package_template_function_if FILENAME NAME CHECK_VARIABLE)
     string(REPLACE ";" " " ARGS "${ARGN}")