File: install-cmake-bits-to-DATADIR.patch

package info (click to toggle)
cccl 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,200 kB
  • sloc: cpp: 236,258; python: 6,415; sh: 2,407; perl: 460; makefile: 114; xml: 13
file content (27 lines) | stat: -rw-r--r-- 1,072 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
Author: Andreas Beckmann <anbe@debian.org>
Description: install *.cmake to CMAKE_INSTALL_DATADIR
Bug: https://github.com/NVIDIA/thrust/issues/1838

--- a/cub/cmake/CubInstallRules.cmake
+++ b/cub/cmake/CubInstallRules.cmake
@@ -1,4 +1,4 @@
-# Bring in CMAKE_INSTALL_LIBDIR
+# Bring in CMAKE_INSTALL_DATADIR
 include(GNUInstallDirs)
 
 # CUB is a header library; no need to build anything before installing:
@@ -11,12 +11,12 @@ install(DIRECTORY "${CUB_SOURCE_DIR}/cub
 )
 
 install(DIRECTORY "${CUB_SOURCE_DIR}/cub/cmake/"
-  DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/cub"
+  DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/cub"
   REGEX .*header-search.cmake.* EXCLUDE
 )
 # Need to configure a file to store the infix specified in
 # CMAKE_INSTALL_INCLUDEDIR since it can be defined by the user
-set(_CCCL_RELATIVE_LIBDIR "${CMAKE_INSTALL_LIBDIR}")
+set(_CCCL_RELATIVE_LIBDIR "${CMAKE_INSTALL_DATADIR}")
 if(_CCCL_RELATIVE_LIBDIR MATCHES "^${CMAKE_INSTALL_PREFIX}")
   # libdir is an abs string that starts with prefix
   string(LENGTH "${CMAKE_INSTALL_PREFIX}" to_remove)