source: trunk/dports/devel/cmake/files/patch-Modules-Platform-Darwin.cmake.diff @ 122338

Last change on this file since 122338 was 122338, checked in by jeremyhu@…, 6 years ago

cmake: Make cmake less stupid by allowing choosing / for the sysroot when a deployment target is set (#44125)

File size: 595 bytes
  • Modules/Platform/Darwin.cmake

    http://trac.macports.org/ticket/44125
    
    old new if(CMAKE_OSX_DEPLOYMENT_TARGET) 
    207207    set(_sdk_ver "${CMAKE_MATCH_1}")
    208208  elseif("${_CMAKE_OSX_SYSROOT_ORIG}" MATCHES "^macosx([0-9]+\\.[0-9]+)$")
    209209    set(_sdk_ver "${CMAKE_MATCH_1}")
     210  elseif("${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "/")
     211    set(_sdk_ver "${_CURRENT_OSX_VERSION}")
    210212  else()
    211213    message(FATAL_ERROR
    212214      "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' "
Note: See TracBrowser for help on using the repository browser.