CMakeLists.txt: add ENABLE_LDCONFIG to support multi-version install

Depends-On: I58fdf1d0b4e864b5a61ffe8e335d430d424811ab
Change-Id: I8e3e873fde99eaec79651ce6c3581870e9c2112d
Signed-off-by: Cole Nelson <cole.nelson@amd.com>
This commit is contained in:
Cole Nelson
2021-03-22 13:09:46 -07:00
والد d287c60246
کامیت a9ce8683eb
9فایلهای تغییر یافته به همراه67 افزوده شده و 45 حذف شده
+5
مشاهده پرونده
@@ -0,0 +1,5 @@
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then
echo -e "@CPACK_PACKAGING_INSTALL_PREFIX@/lib\n@CPACK_PACKAGING_INSTALL_PREFIX@/lib64" > /etc/ld.so.conf.d/x86_64-libhsakmt.conf
ldconfig
fi
+5
مشاهده پرونده
@@ -0,0 +1,5 @@
# second term originates from ENABLE_LDCONFIG = ON/OFF at package build
if [ $1 -eq 0 ] && [ "@ENABLE_LDCONFIG@" == "ON" ]; then
rm -f /etc/ld.so.conf.d/x86_64-libhsakmt.conf
ldconfig
fi
-1
مشاهده پرونده
@@ -1 +0,0 @@
echo -e "/opt/rocm/lib\n/opt/rocm/lib64" > /etc/ld.so.conf.d/x86_64-libhsakmt.conf && ldconfig
-3
مشاهده پرونده
@@ -1,3 +0,0 @@
if [ $1 -eq 0 ]; then
rm -f /etc/ld.so.conf.d/x86_64-libhsakmt.conf && ldconfig
fi