[cmake-developers] CMake identifies MacOSX10.7-Xcode43-ub as GNU, but it runs clang.

Clinton Stimpson clinton at elemtech.com
Tue Apr 29 11:34:59 EDT 2014


On Tuesday, April 29, 2014 11:01:06 AM Brad King wrote:
> On 04/28/2014 01:07 PM, Brad King wrote:
> > It looks like in this case users will have to tell Xcode what tool
> > to use up front using the CMake generator toolset feature (cmake -T).
> > I think this is acceptable because it only affects old Xcode versions.
> > Otherwise we will need a much more complicated compiler id bootstrap
> > process
> 
> Actually it is not so complicated because the determination of
> the sysroot and deployment target does not depend on the language.
> I just had to introduce a platform-specific initialization step
> after the system is determined but before the compilers are:
> 
>  Add platform-specific initialization step when enabling languages
>  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=416761e3
> 
>  OS X: Factor a Darwin-Initialize module out of Platform/Darwin
>  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0200d0a9
> 
>  Xcode: Use sysroot and deployment target to identify compiler
>  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0cce556b
> 
> Now the Xcode compiler identification finds the right one.
> I've reverted my change to the machine-specific dashboard
> script.
> 
> -Brad

Thanks!  Those fixes were needed to fix this:
http://cmake.org/Bug/view.php?id=14572

- Clint



More information about the cmake-developers mailing list