[cmake-developers] the default value in CMake 3.5.2 for CMAKE_OSX_DEPLOYMENT_TARGET is too low for Xcode6

Brad King brad.king at kitware.com
Mon May 23 10:24:03 EDT 2016


On 05/22/2016 01:27 AM, James Burgess wrote:
> If you don’t set this you get 10.5. On any mac with Xcode 6 (7 is the latest)

CMake's default value for CMAKE_OSX_DEPLOYMENT_TARGET is empty, which results
in either no -mmacosx-version-min flag being used or in the host OS X version,
depending on the native build tool behavior for the selected generator.  Might
this default be coming from project code?

> a CMake user will see strange problems if they use CMakeList.txt file that uses
> a module like Threads or Iconv that compile c++ files as part of their discovery.

Please provide a complete CMakeLists.txt file and specify the command line
of CMake you're using to produce this problem.

Thanks,
-Brad



More information about the cmake-developers mailing list