Ignore:
Timestamp:
Jul 21, 2014, 7:45:03 AM (5 years ago)
Author:
jeremyhu@…
Message:

cmake-1.0: Set sysroot to / when the configure.sdkroot is unset. Requires cmake r122338 change as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/cmake-1.0.tcl

    r122300 r122339  
    119119            configure.args-append -DCMAKE_OSX_SYSROOT="${configure.sdkroot}"
    120120        } else {
    121             # cmake seems to be unable to support building against / with a deployment target set:
    122             #
    123             #    "Either set CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to empty."
    124             #
    125             # For now, fall back on an SDK, but this is a horrible workaround and needs to be fixed.
    126             # http://trac.macports.org/ticket/44125
    127 
    128             if {[vercmp $xcodeversion 4.3] < 0} {
    129                 set sdks_dir ${developer_dir}/SDKs
    130             } else {
    131                 set sdks_dir ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs
    132             }
    133             if {${configure.sdk_version} eq "10.4"} {
    134                 set sdk ${sdks_dir}/MacOSX10.4u.sdk
    135             } else {
    136                 set sdk ${sdks_dir}/MacOSX${configure.sdk_version}.sdk
    137             }
    138 
    139             configure.args-append \
    140                 -DCMAKE_OSX_SYSROOT="${sdk}"
     121            configure.args-append -DCMAKE_OSX_SYSROOT="/"
    141122        }
    142123    }
Note: See TracChangeset for help on using the changeset viewer.