diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-08-18 18:16:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-08-18 18:16:17 +0100 |
commit | fc637fb28da700da71ec2064d65ca5a7a31b9c6c (patch) | |
tree | 326613a08f25851c388715e205576a2e7d25dc4f /dev-util/rocminfo/files/rocminfo-2.6.0-cmake-variables.patch | |
parent | b24bd25253fe093f722ab576d29fdc41d04cb1ee (diff) |
gentoo resync : 18.08.2019
Diffstat (limited to 'dev-util/rocminfo/files/rocminfo-2.6.0-cmake-variables.patch')
-rw-r--r-- | dev-util/rocminfo/files/rocminfo-2.6.0-cmake-variables.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-util/rocminfo/files/rocminfo-2.6.0-cmake-variables.patch b/dev-util/rocminfo/files/rocminfo-2.6.0-cmake-variables.patch new file mode 100644 index 000000000000..1678f5043273 --- /dev/null +++ b/dev-util/rocminfo/files/rocminfo-2.6.0-cmake-variables.patch @@ -0,0 +1,31 @@ +https://github.com/RadeonOpenCompute/rocminfo/pull/17 + +From c9bfc4b3db029b8502f900cd9bb545a675ca0898 Mon Sep 17 00:00:00 2001 +From: Craig Andrews <candrews@integralblue.com> +Date: Thu, 25 Jul 2019 17:59:51 -0400 +Subject: [PATCH] Use CACHE variables, allow overriding + ROCR_LIB_DIR/ROCR_INC_DIR + +CACHE variables allow for variables to be documented, and ROCR_LIB_DIR/ROCR_INC_DIR should be overridable as they'll have different values on different Linux distributions. +--- + CMakeLists.txt | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b5fa9dd..f8f430f 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -43,9 +43,10 @@ endif() + # + + # Required Defines first: +- +-set(ROCR_INC_DIR ${ROCM_DIR}/include) +-set(ROCR_LIB_DIR ${ROCM_DIR}/lib) ++set(ROCRTST_BLD_BITS CACHE "64" STRING "Either 32 or 64") ++set(ROCM_DIR CACHE PATH "Root for RocM install") ++set(ROCR_INC_DIR ${ROCM_DIR}/include CACHE PATH "Path for RocM includes") ++set(ROCR_LIB_DIR ${ROCM_DIR}/lib CACHE PATH "Path for RocM libraries") + # + # Determine ROCR Header files are present + # |