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

package info (click to toggle)
rocthrust 6.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,588 kB
  • sloc: cpp: 66,309; ansic: 34,184; python: 1,519; sh: 331; xml: 212; makefile: 115
file content (27 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download
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
26
27
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Wed, 5 Apr 2023 22:16:13 -0600
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 librocprim-dev and libthrust-dev.

Forwarded: not-needed
---
 cmake/ROCMExportTargetsHeaderOnly.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/ROCMExportTargetsHeaderOnly.cmake b/cmake/ROCMExportTargetsHeaderOnly.cmake
index 9c68024..1732b7f 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}")