summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mrmarch/CMakeLists.txt2
-rwxr-xr-xtools/mrmarch/mrmarch.in10
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/mrmarch/CMakeLists.txt b/tools/mrmarch/CMakeLists.txt
index 5e3db91..310ae0a 100644
--- a/tools/mrmarch/CMakeLists.txt
+++ b/tools/mrmarch/CMakeLists.txt
@@ -1,2 +1,2 @@
-configure_file(mrmarch.in mrmarch)
+configure_file(mrmarch.in mrmarch @ONLY)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/mrmarch DESTINATION ${MR_INSTALL_BINDIR_RELATIVE_PATH} COMPONENT Program)
diff --git a/tools/mrmarch/mrmarch.in b/tools/mrmarch/mrmarch.in
index 72d21c7..915c72b 100755
--- a/tools/mrmarch/mrmarch.in
+++ b/tools/mrmarch/mrmarch.in
@@ -59,13 +59,13 @@ fi
# Perform actions based on parameters
if [ "$display_flag" = true ]; then
- update-alternatives --display mrzcpd --altdir /opt/tsg/mrzcpd/update_alternatives
+ update-alternatives --display mrzcpd --admindir @CMAKE_INSTALL_PREFIX@/alternatives_admindir --altdir @CMAKE_INSTALL_PREFIX@/alternatives_altdir
exit
fi
if [ "$config_flag" = true ]; then
- update-alternatives --config mrzcpd --altdir /opt/tsg/mrzcpd/update_alternatives/
+ update-alternatives --config mrzcpd --admindir @CMAKE_INSTALL_PREFIX@/alternatives_admindir --altdir @CMAKE_INSTALL_PREFIX@/alternatives_altdir/
exit
fi
@@ -74,12 +74,12 @@ if [ "$auto_flag" = true ]; then
fi
if [ "$march" == "icelake-server" ]; then
- update-alternatives --set mrzcpd /opt/tsg/mrzcpd/icelake-server/bin/mrzcpd --altdir /opt/tsg/mrzcpd/update_alternatives
+ update-alternatives --set mrzcpd /opt/tsg/mrzcpd/icelake-server/bin/mrzcpd --admindir @CMAKE_INSTALL_PREFIX@/alternatives_admindir --altdir @CMAKE_INSTALL_PREFIX@/alternatives_altdir
exit
elif [ "$march" == "znver1" ]; then
- update-alternatives --set mrzcpd /opt/tsg/mrzcpd/znver1/bin/mrzcpd --altdir /opt/tsg/mrzcpd/update_alternatives
+ update-alternatives --set mrzcpd /opt/tsg/mrzcpd/znver1/bin/mrzcpd --admindir @CMAKE_INSTALL_PREFIX@/alternatives_admindir --altdir @CMAKE_INSTALL_PREFIX@/alternatives_altdir
exit
else
- update-alternatives --set mrzcpd /opt/tsg/mrzcpd/corei7/bin/mrzcpd --altdir /opt/tsg/mrzcpd/update_alternatives
+ update-alternatives --set mrzcpd /opt/tsg/mrzcpd/corei7/bin/mrzcpd --admindir @CMAKE_INSTALL_PREFIX@/alternatives_admindir --altdir @CMAKE_INSTALL_PREFIX@/alternatives_altdir
exit
fi