[CMake] OSX deployment target confusion for 2.8.10

Matthew Brett matthew.brett at gmail.com
Wed Nov 7 16:13:37 EST 2012


Hi,

On Wed, Nov 7, 2012 at 1:00 PM, Brad King <brad.king at kitware.com> wrote:
> On 11/07/2012 03:41 PM, Matthew Brett wrote:
>> I was probably thinking of the problem in the same way as you are,
>> which is: how can I make sure that the build works or fails gracefully
>> for someone else if they have the same problem?
>
> I'm not interested in spending much time trying to make the build actually
> work on such a broken setup.  It only worked in CMake < 2.8.10 by an
> accident, and wouldn't with universal binary builds.
>
> We can warn about it though.  Try adding something like this to the end
> of CMake's Modules/Platform/Darwin.cmake:
>
> if(IS_DIRECTORY "${CMAKE_OSX_SYSROOT}/Library/Frameworks" AND
>    IS_SYMLINK "${CMAKE_OSX_SYSROOT}/Library/Frameworks/Frameworks")
>   message(WARNING "The SDK Library/Frameworks path
>  ${CMAKE_OSX_SYSROOT}/Library/Frameworks
> has not been configured correctly on this system.  See
>  http://bugs.python.org/issue14018
> and consider fixing your symlinks locally.")
> endif()
>
> Does it print the warning on your system?

Great - yes - lots of informative warnings in the initial cmake phase.

Thanks, that's very helpful,

Matthew


More information about the CMake mailing list