No more setup_apple macro

This commit is contained in:
Sophie Belloeil 2010-07-21 13:03:36 +00:00
parent f20863ad6e
commit f76755d803
1 changed files with 15 additions and 14 deletions

View File

@ -17,20 +17,21 @@
# #
# Specific Apple OSX setup # Specific Apple OSX setup
# #
macro(setup_apple) # This is no more needed since QT 4.6 is available for Mac OSX 10.6
if(APPLE) # macro(setup_apple)
execute_process( # if(APPLE)
COMMAND sw_vers -productVersion # execute_process(
OUTPUT_VARIABLE OSX_VERSION # COMMAND sw_vers -productVersion
OUTPUT_STRIP_TRAILING_WHITESPACE) # OUTPUT_VARIABLE OSX_VERSION
message(STATUS "OSX_VERSION='${OSX_VERSION}'") # OUTPUT_STRIP_TRAILING_WHITESPACE)
if(${OSX_VERSION} MATCHES "^10\\.[012345]\\.?") # message(STATUS "OSX_VERSION='${OSX_VERSION}'")
message(STATUS "OSX < 10.6") # if(${OSX_VERSION} MATCHES "^10\\.[012345]\\.?")
else(${OSX_VERSION} MATCHES "^10\\.[012345]\\.?") # message(STATUS "OSX < 10.6")
set(CMAKE_OSX_ARCHITECTURES "i386;ppc") # for QT4.5 32bits on snow leopard # else(${OSX_VERSION} MATCHES "^10\\.[012345]\\.?")
endif(${OSX_VERSION} MATCHES "^10\\.[012345]\\.?") # set(CMAKE_OSX_ARCHITECTURES "i386;ppc") # for QT4.5 32bits on snow leopard
endif(APPLE) # endif(${OSX_VERSION} MATCHES "^10\\.[012345]\\.?")
endmacro(setup_apple) # endif(APPLE)
# endmacro(setup_apple)