cmake_modules/platform.cmake
changeset 9151 1d2df388fcc6
parent 9150 79c58ff0d4b1
child 9191 fc54667b1203
child 9210 31fedd5ef878
equal deleted inserted replaced
9150:79c58ff0d4b1 9151:1d2df388fcc6
    14         string(REGEX REPLACE "([0-9]+.[0-9]+).[0-9]+" "\\1" current_macosx_version ${current_macosx_version})
    14         string(REGEX REPLACE "([0-9]+.[0-9]+).[0-9]+" "\\1" current_macosx_version ${current_macosx_version})
    15     else()
    15     else()
    16         if(NOT minimum_macosx_version)
    16         if(NOT minimum_macosx_version)
    17             message(FATAL_ERROR "sw_vers not found! Need explicit MACOSX_DEPLOYMENT_TARGET variable set")
    17             message(FATAL_ERROR "sw_vers not found! Need explicit MACOSX_DEPLOYMENT_TARGET variable set")
    18         else()
    18         else()
    19             message(${WARNING} "sw_vers not found! Fallback to MACOSX_DEPLOYMENT_TARGET variable")
    19             message("*** sw_vers not found! Fallback to MACOSX_DEPLOYMENT_TARGET variable ***")
    20             set(current_macosx_version ${minimum_macosx_version})
    20             set(current_macosx_version ${minimum_macosx_version})
    21         endif()
    21         endif()
    22     endif()
    22     endif()
    23 
    23 
    24 #if nothing is set, we deploy only for the current system
    24 #if nothing is set, we deploy only for the current system