From e9dd9ef1562721415e07d618359a67bcdda2a605 Mon Sep 17 00:00:00 2001 From: Jeremy Newton Date: Fri, 25 Oct 2019 15:01:58 -0400 Subject: [PATCH] libhsakmt: default packaging prefix to install If CPACK_PACKAGING_INSTALL_PREFIX is not set, it's safer to assume it's the same as CMAKE_INSTALL_PREFIX, incase only the latter is set. Change-Id: I70727ebbc50f21f8d6e3add10d7f9f2d5e747dee Signed-off-by: Jeremy Newton [ROCm/ROCR-Runtime commit: cb4d4107ed820dd454a98dac898984cd25eca73f] --- projects/rocr-runtime/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/CMakeLists.txt b/projects/rocr-runtime/CMakeLists.txt index 1e644e9911..1bf4e8cf15 100644 --- a/projects/rocr-runtime/CMakeLists.txt +++ b/projects/rocr-runtime/CMakeLists.txt @@ -131,7 +131,7 @@ target_link_libraries ( ${HSAKMT_TARGET} ## Define default variable and variables for the optional build target hsakmt-dev set ( SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE STRING "Location of hsakmt source code." ) set ( CMAKE_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default installation directory." ) -set ( CPACK_PACKAGING_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default packaging prefix." ) +set ( CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" CACHE STRING "Default packaging prefix." ) set ( CPACK_GENERATOR "DEB;RPM" CACHE STRING "Default packaging generators." ) ## Specify build, install and package targets hsakmt-dev