b8c124acb5
Use GNUInstallDirs variables to determine the location of BINDIR, LIBDIR, DOCDIR, and SYSCONFDIR. Note that CMAKE_INSTALL_LIBDIR is overriden, since the default for RHEL is lib64, but ROCm packaging wants it to be lib always. Distros or users can easily override this. Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com> Change-Id: Ifb38263dce80d80c5ebb4eacd8e49c76bb013a44
5 lines
310 B
Plaintext
5 lines
310 B
Plaintext
INSTALL_PATH=@CPACK_PACKAGING_INSTALL_PREFIX@
|
|
|
|
echo ${INSTALL_PATH}/@CMAKE_INSTALL_LIBDIR@ > /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
|
|
mkdir -p /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors && (echo libamdocl64.so > /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@)
|