[Cmake-commits] [cmake-commits] david.cole committed Darwin.cmake 1.51 1.52

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Jan 27 11:50:43 EST 2009


Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv29138/Modules/Platform

Modified Files:
	Darwin.cmake 
Log Message:
BUG: Only set CMAKE_OSX_DEPLOYMENT_TARGET on Mac OSX 10.4 or later. The gcc that runs on 10.3 and earlier does not understand the compiler flag it maps to...


Index: Darwin.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Darwin.cmake,v
retrieving revision 1.51
retrieving revision 1.52
diff -C 2 -d -r1.51 -r1.52
*** Darwin.cmake	27 Jan 2009 15:30:54 -0000	1.51
--- Darwin.cmake	27 Jan 2009 16:50:41 -0000	1.52
***************
*** 112,117 ****
  
  # Set cache variables - end user may change these during ccmake or cmake-gui configure.
! SET(CMAKE_OSX_DEPLOYMENT_TARGET "${CMAKE_OSX_DEPLOYMENT_TARGET_DEFAULT}" CACHE STRING
!   "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value.")
  
  SET(CMAKE_OSX_SYSROOT "${CMAKE_OSX_SYSROOT_DEFAULT}"  CACHE PATH 
--- 112,119 ----
  
  # Set cache variables - end user may change these during ccmake or cmake-gui configure.
! IF(CURRENT_OSX_VERSION GREATER 10.3)
!   SET(CMAKE_OSX_DEPLOYMENT_TARGET "${CMAKE_OSX_DEPLOYMENT_TARGET_DEFAULT}" CACHE STRING
!     "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value.")
! ENDIF(CURRENT_OSX_VERSION GREATER 10.3)
  
  SET(CMAKE_OSX_SYSROOT "${CMAKE_OSX_SYSROOT_DEFAULT}"  CACHE PATH 



More information about the Cmake-commits mailing list