pre/post package scripts install dir name fix and CPACK_PACKAGING_INSTALL_PREFIX
Change-Id: I415875572829dadc9996dd7561418a77ec3fe1bb
[ROCm/rocprofiler commit: 722fa91624]
This commit is contained in:
@@ -81,6 +81,7 @@ add_custom_target ( rocprof-link ALL
|
||||
#if ( CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT )
|
||||
#message ( "CMAKE default prefix: ${CMAKE_INSTALL_PREFIX}" )
|
||||
#endif ()
|
||||
set ( CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} )
|
||||
set ( CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/${ROCPROFILER_NAME}" )
|
||||
message ( "---------Install-Dir: ${CMAKE_INSTALL_PREFIX}" )
|
||||
install ( TARGETS ${ROCPROFILER_TARGET} LIBRARY DESTINATION lib )
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
set -e
|
||||
|
||||
do_ldconfig() {
|
||||
echo /opt/rocm/librocprofiler/lib > /etc/ld.so.conf.d/libhsa-rocprofiler64.conf && ldconfig
|
||||
echo /opt/rocm/rocprofiler/lib > /etc/ld.so.conf.d/librocprofiler64.conf && ldconfig
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
set -e
|
||||
|
||||
rm_ldconfig() {
|
||||
rm -f /etc/ld.so.conf.d/libhsa-rocprofiler64.conf && ldconfig
|
||||
rm -f /etc/ld.so.conf.d/librocprofiler64.conf && ldconfig
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
||||
@@ -1 +1 @@
|
||||
echo /opt/rocm/librocprofiler/lib > /etc/ld.so.conf.d/libhsa-rocprofiler64.conf && ldconfig
|
||||
echo /opt/rocm/rocprofiler/lib > /etc/ld.so.conf.d/librocprofiler64.conf && ldconfig
|
||||
|
||||
@@ -1 +1 @@
|
||||
rm -f /etc/ld.so.conf.d/libhsa-rocprofiler64.conf && ldconfig
|
||||
rm -f /etc/ld.so.conf.d/librocprofiler64.conf && ldconfig
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user