[cmake-developers] [PATCH] FindPythonLibs patches for version searching and frameworks

Clinton Stimpson clinton at elemtech.com
Thu Sep 17 12:59:12 EDT 2015


On Thursday, September 17, 2015 12:54:26 PM Brad King wrote:
> On 09/17/2015 12:42 PM, David Gobbi wrote:
> > Okay, Clinton.  Now you've made me paranoid that I should be prepending
> > the value of CMAKE_OSX_SYSROOT before the prefix if it isn't already
> > part of the prefix.  I don't want to ignore CMAKE_OSX_SYSROOT if it has
> > been set, but unfortunately I don't know all the details of how
> > find_library uses CMAKE_OSX_SYSROOT internally.
> 
> Individual find modules and find_ calls should not have to worry
> about that.  See Modules/Platform/Darwin.cmake for use of the
> CMAKE_OSX_SYSROOT to set CMAKE_SYSTEM_PREFIX_PATH.

Yeah.

However, it does bother me that it found includes from the SDK and a library 
under /usr/lib.

For example, if I use the 10.6 SDK on OS X 10.7, it appears that it would find 
/usr/lib/libpython.2.7.dylib and headers for python 2.6 under the 10.6 SDK.

I guess I can put this in the bug tracker.

Clint


More information about the cmake-developers mailing list