Skip to content

Commit

Permalink
Use common script to check for distro
Browse files Browse the repository at this point in the history
Also use distro type rather than codename for checking.
refs #7021
  • Loading branch information
stuartcampbell committed May 7, 2013
1 parent 9d1dade commit 6ce1863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Build/CMake/LinuxSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ set ( PLUGINS_DIR plugins )
set ( PVPLUGINS_DIR pvplugins )
set ( PVPLUGINS_SUBDIR pvplugins ) # Need to tidy these things up!

include ( CPackLinuxSetup )
include ( DetermineLinuxDistro )

if ( CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT )
set ( CMAKE_INSTALL_PREFIX /opt/Mantid CACHE PATH "Install path" FORCE )
Expand Down Expand Up @@ -90,7 +90,7 @@ endif()


# RHEL6 specific stuff (as we need to use software collections)
if ( ${UNIX_CODENAME} STREQUAL "Santiago" )
if ( ${UNIX_DIST} STREQUAL "RedHatEnterprise" )
file ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/rpm_post_install.sh "\n"
"if [ -f $RPM_INSTALL_PREFIX0/${BIN_DIR}/MantidPlot ]; then\n"
" mv $RPM_INSTALL_PREFIX0/${BIN_DIR}/MantidPlot $RPM_INSTALL_PREFIX0/${BIN_DIR}/MantidPlot_exe\n"
Expand Down

0 comments on commit 6ce1863

Please sign in to comment.