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 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
