Skip to content

Commit

Permalink
refs #5103. Fix Mac build.
Browse files Browse the repository at this point in the history
  • Loading branch information
owen authored and OwenArnold committed Apr 28, 2012
1 parent 10c2244 commit ee094ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Code/Mantid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ ENDIF()
###########################################################################
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

execute_process(
COMMAND /usr/bin/sw_vers productVersion
execute_process(
COMMAND /usr/bin/sw_vers -productVersion
OUTPUT_VARIABLE OSX_VERSION
RESULT_VARIABLE OSX_VERSION_STATUS
)
Expand All @@ -65,7 +65,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
string(STRIP ${OSX_VERSION} OSX_VERSION)

if (OSX_VERSION VERSION_LESS 10.6)
message (FATAL_ERROR "The minimum supported version of Mac OS X is 10.6 (Snow Leopard). Your version is ${RESULT_VARIABLE}")
message (FATAL_ERROR "The minimum supported version of Mac OS X is 10.6 (Snow Leopard).")
endif()

if (OSX_VERSION VERSION_GREATER 10.6 OR OSX_VERSION VERSION_EQUAL 10.6)
Expand Down

0 comments on commit ee094ec

Please sign in to comment.