Ignore:
Timestamp:
Jul 20, 2014, 3:24:54 AM (5 years ago)
Author:
jeremyhu@…
Message:

Partially revert the previous commit until cmake is fixed (#44125).

File:
1 edited

Legend:

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

    r122298 r122300  
    119119            configure.args-append -DCMAKE_OSX_SYSROOT="${configure.sdkroot}"
    120120        } else {
    121             configure.args-append -DCMAKE_OSX_SYSROOT="/"
     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}"
    122141        }
    123142    }
Note: See TracChangeset for help on using the changeset viewer.