If your set CMAKE_OSX_DEPLOYMENT_TARGET in order to get find modules to work on
Xcode6 or above you get this message:
$ cmake -D CMAKE_OSX_DEPLOYMENT_TARGET=10.8 .
CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' but the matching SDK does not exist
at:
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
Instead using SDK:
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk".
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.5/Modules/CMakeSystemSpecificInitialize.cmake:18
(include)
CMakeLists.txt:25 (project)
CMake is setting the value of --mmacosx-version-min= to this value. Which SDK
you have does not need to be the same as the target deployment (which can be
less than the SDK). That is to say the 10.10sdk can target 10.8, meaning code
compiled with 10.8 set as the target will run on 10.8, 10.9 and 10.10 machines.
- James
--
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