CMakeLists.txt
branch0.9.19
changeset 8929 499243eb04d1
parent 8907 7e9c6efe90fd
child 9068 3401390f03cf
equal deleted inserted replaced
8928:10a79d89ca31 8929:499243eb04d1
   180     #CMAKE_OSX_SYSROOT is set at the system version we are supposed to build on
   180     #CMAKE_OSX_SYSROOT is set at the system version we are supposed to build on
   181     #we need to provide the correct one when host and target differ
   181     #we need to provide the correct one when host and target differ
   182     if(NOT ${minimum_macosx_version} VERSION_EQUAL ${current_macosx_version})
   182     if(NOT ${minimum_macosx_version} VERSION_EQUAL ${current_macosx_version})
   183         if(minimum_macosx_version VERSION_EQUAL "10.4")
   183         if(minimum_macosx_version VERSION_EQUAL "10.4")
   184             set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk/")
   184             set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk/")
   185             set(CMAKE_C_COMPILER "gcc-4.0")
   185             set(CMAKE_C_COMPILER "/Developer/usr/bin/gcc-4.0")
   186             set(CMAKE_CXX_COMPILER "g++-4.0")
   186             set(CMAKE_CXX_COMPILER "/Developer/usr/bin/g++-4.0")
   187         else()
   187         else()
   188             string(REGEX REPLACE "([0-9]+.[0-9]+).[0-9]+" "\\1" sdk_version ${minimum_macosx_version})
   188             string(REGEX REPLACE "([0-9]+.[0-9]+).[0-9]+" "\\1" sdk_version ${minimum_macosx_version})
   189             set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX${sdk_version}.sdk/")
   189             set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX${sdk_version}.sdk/")
   190         endif()
   190         endif()
   191     endif()
   191     endif()