[101141] trunk/dports/_resources/port1.0/group/cmake-1.0.tcl
Mike Alexander
mta at umich.edu
Sat Jan 5 13:49:37 PST 2013
--On January 6, 2013 7:48:05 AM +1100 Joshua Root <jmr at macports.org>
wrote:
> On 2013-1-6 06:41 , Jeremy Huddleston Sequoia wrote:
>>
>> On Jan 5, 2013, at 12:27 AM, Joshua Root <jmr at macports.org> wrote:
>>
>>> Does setting MACOSX_DEPLOYMENT_TARGET always cause cmake to want to
>>> use an SDK,
>>
>> I should hope not. That would be a bad bug in cmake.
>
> Going by the commit message in
> patch-Modules-Platform-Darwin.cmake.diff, it looks like that is in
> fact the case.
Just FYI, here is the change I made to solve the problem. I'm not
saying it's necessarily better, but it seems reasonable. I looked at
the changes to /opt/local/share/cmake-2.8/Modules/Platform/Darwin.cmake
and this change seemed reasonable given what changed.
Mike
Index: cmake-1.0.tcl
===================================================================
--- cmake-1.0.tcl (revision 101080)
+++ cmake-1.0.tcl (working copy)
@@ -74,7 +74,7 @@
if {${configure.sdkroot} != ""} {
configure.args-append
-DCMAKE_OSX_SYSROOT="${configure.sdkroot}"
} else {
- configure.args-append -DCMAKE_OSX_SYSROOT=/
+ configure.args-append -UCMAKE_OSX_SYSROOT
}
}
}
More information about the macports-dev
mailing list