[CMake] Xcode 2.4 and cmake, does it work?

William A. Hoffman billlist at nycap.rr.com
Tue Oct 10 17:08:32 EDT 2006


At 04:56 PM 10/10/2006, Sean McBride wrote:
>Hi all,
>
>If I make just one change (CMAKE_GENERATOR from "Unix Makefiles" to
>"Xcode") CMake won't build, giving this error:
>
>-- Check for working C compiler: gcc
>-- Check for working C compiler: gcc -- broken
>CMake Error: Error in cmake code at
>/usr/local/cmake/share/CMake/Modules/CMakeTestCCompiler.cmake:33:
>MESSAGE The C compiler "gcc" is not able to compile a simple test program.
>It fails with the following output:
> ** BUILD FAILED **
>=== BUILDING AGGREGATE TARGET XCODE_DEPEND_HELPER WITH CONFIGURATION Debug ===
>
>I am using Xcode 2.4 on Mac OS X 10.4.8.
>
>I see there are a few dashboards that do Xcode builds, but they seem to
>use 1.5 or 2.1.  Has anyone been able to use CMake with Xcode 2.4?  Is
>this known to be broken?


There is a dashbaord, and it seems to be working.
eno     Darwin-XCode24-dbg  
So, I think it should work.   The output you have is not very helpful.
You may want to try a cmake --debug-trycompile, then look at
the CMakeFiles/CMakeTmp directory and see what is wrong with the project
if you load it directly into the Xcode gui.

-Bill



More information about the CMake mailing list