Allow specifying rsmi-lib install path
Instead of hard-coding install path to /opt/rocm, allow users to specify
where "make install" goes to so users can install lib to their local build
path for testing purpose without touching global /opt/rocm files.
Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Change-Id: I4144988e325edae4d1d1a2824e031996091036d3
[ROCm/amdsmi commit: 741f9c31ff]
This commit is contained in:
@@ -56,8 +56,10 @@ message("SOVERSION: ${SO_VERSION_STRING}")
|
||||
## rocm_smi_lib-dev
|
||||
set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
CACHE STRING "Location of rocm_smi source code.")
|
||||
set(CMAKE_INSTALL_PREFIX "/opt/rocm"
|
||||
CACHE STRING "Default installation directory.")
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/opt/rocm"
|
||||
CACHE STRING "Default installation directory.")
|
||||
endif ()
|
||||
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/rocm"
|
||||
CACHE STRING "Default packaging prefix.")
|
||||
set(CPACK_GENERATOR "DEB;RPM" CACHE STRING "Default packaging generators.")
|
||||
|
||||
Reference in New Issue
Block a user