Skip to content

Commit

Permalink
refs #4472. Use OSX_CODENAME in CPack.
Browse files Browse the repository at this point in the history
Instead of hardcoding the OS X codename, use the determined variable.
But, with the spaces removed.
  • Loading branch information
stuartcampbell committed Mar 28, 2012
1 parent 237d4cb commit 617e744
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Build/CMake/DarwinSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ install ( FILES ${CMAKE_SOURCE_DIR}/Images/MantidPlot.icns

set ( MACOSX_BUNDLE_ICON_FILE MantidPlot.icns )

set ( CPACK_SYSTEM_NAME SnowLeopard )
# Set the system name (and remove the space)
string (REPLACE " " "" CPACK_SYSTEM_NAME ${OSX_CODENAME})
set ( CPACK_OSX_PACKAGE_VERSION 10.6 )
set ( CPACK_PREFLIGHT_SCRIPT ${CMAKE_SOURCE_DIR}/Installers/MacInstaller/installer_hooks/preflight )
set ( CPACK_POSTFLIGHT_SCRIPT ${CMAKE_SOURCE_DIR}/Installers/MacInstaller/installer_hooks/postflight )
Expand Down

0 comments on commit 617e744

Please sign in to comment.