[CMake] OSX deployment target confusion for 2.8.10
Bradley Giesbrecht
pixilla at macports.org
Mon Nov 5 16:03:18 EST 2012
On Nov 5, 2012, at 12:44 PM, Matthew Brett wrote:
> Hi,
>
> On Mon, Nov 5, 2012 at 7:57 AM, Brad King <brad.king at kitware.com> wrote:
>> On 11/04/2012 07:59 PM, Bradley Giesbrecht wrote:
>>> The problem is in commit e7e613e. Patching Darwin.cmake back to revision 43b74793 solves the problem.
>>>
>>> The breakage is here:
>>> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e7e613efbf1da45a2a9e51d11a4022589d79c642
>>
>> Thanks for tracking it down that far. However, I think it is
>> 43b74793 that actually introduced the problem. The later
>> commit only changed the appearance of the error message.
>>
>>> On Nov 3, 2012, at 7:06 PM, Matthew Brett wrote:
>>>> export CMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.6.sdk/
>>
>> CMake does not read this variable from the environment. Try
>>
>> export SDKROOT=/Developer/SDKs/MacOSX10.6.sdk
>>
>> instead to work around this.
>
> This does get the compilation past that error message, but on to
> another (that I do not get for cmake 2.8.9). I will try and debug
> further.
>
>>>> If I grep for 'DEPLOYMENT' in the PySide sources, I find nothing - so
>>>> I do not believe these variables are being set by PySide.
>>
>> I suspect that python is setting MACOSX_DEPLOYMENT_TARGET.
>
> It is perfectly possible that python distutils does set this, it
> certainly checks for this in the Python configuration.
With MacPorts and a patched cmake I am able to configure py27-pyside.
Here is the working cmake command MacPorts is producing; maybe it will help you:
cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_MODULE_PATH=/opt/local/share/cmake/modules -Wno-dev -DBUILD_TESTS:BOOL=FALSE -DPYTHON_EXECUTABLE=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 -DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python -DPYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DSITE_PACKAGE=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.6.sdk
Regards,
Bradley Giesbrecht (pixilla)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2763 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121105/5d56b76d/attachment.bin>
More information about the CMake
mailing list