<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
I have practically the same problem with OS X 10.7.4 and the last
version of XCode (4.4.1).<br>
<br>
$> cmake -GXcode .<br>
<br>
-- The C compiler identification is GNU 4.2.1<br>
-- The CXX compiler identification is GNU 4.2.1<br>
-- Checking whether C compiler has -isysroot<br>
-- Checking whether C compiler has -isysroot - yes<br>
-- Checking whether C compiler supports OSX deployment target flag<br>
-- Checking whether C compiler supports OSX deployment target flag
- yes<br>
-- Check for working C compiler using: Xcode<br>
-- Check for working C compiler using: Xcode -- broken<br>
<font color="#ff0000">CMake Error at /Applications/CMake
2.8-8.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):<br>
The C compiler "/usr/bin/llvm-gcc-4.2" is not able to compile
a simple test<br>
program.<br>
<br>
It fails with the following output:<br>
<br>
Change Dir: /path_to_my_project/CMakeFiles/CMakeTmp<br>
<br>
<br>
<br>
Run Build Command:/Applications/CMake\
2.8-8.app/Contents/bin/cmakexbuild<br>
-project CMAKE_TRY_COMPILE.xcodeproj build -target<br>
cmTryCompileExec404778880 -configuration Debug<br>
</font><br>
Thanks,<br>
<br>
Romain<br>
<br>
Le 09/08/12 02:34, Etuka Onono a écrit :<br>
</div>
<blockquote
cite="mid:D87951B5-A2F9-4FE3-ADF1-7E578C04F21A@tesco.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div style="margin: 0px; ">After I upgraded to OS X 10.8, I
recently upgraded my CMake version to 2.8.8. </div>
<div style="margin: 0px; "><br>
</div>
<div style="margin: 0px; ">I can build CMake projects if I use
"Unix Makefiles" as a generator, but if I use the Xcode
generator, I get the following error:</div>
<div style="margin: 0px; "><br>
</div>
<div style="margin: 0px; ">
<div style="margin: 0px; "><!--StartFragment-->The C compiler
identification is GNU 4.2.1</div>
<div style="margin: 0px; ">The CXX compiler identification is
GNU 4.2.1</div>
<div style="margin: 0px; ">Checking whether C compiler has
-isysroot</div>
<div style="margin: 0px; ">Checking whether C compiler has
-isysroot - yes</div>
<div style="margin: 0px; ">Checking whether C compiler supports
OSX deployment target flag</div>
<div style="margin: 0px; ">Checking whether C compiler supports
OSX deployment target flag - yes</div>
<div style="margin: 0px; ">Check for working C compiler using:
Xcode</div>
<div style="margin: 0px; ">Check for working C compiler using:
Xcode -- broken<!--EndFragment--></div>
</div>
<div style="margin: 0px; "><br>
</div>
<div style="margin: 0px; "><!--StartFragment--><span style="
color:#ff0000;">CMake Error at /Developer/CMake
2.8-8.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):</span></div>
<div style="margin: 0px; "><span style=" color:#ff0000;"> The C
compiler "/usr/bin/gcc" is not able to compile a simple test
program.</span></div>
<div style="margin: 0px; color: rgb(255, 0, 0); "><br>
</div>
<div style="margin: 0px; "><span style=" color:#ff0000;"> It fails
with the following output:</span></div>
<div style="margin: 0px; color: rgb(255, 0, 0); "><br>
</div>
<div style="margin: 0px; "><span style=" color:#ff0000;"> Change
Dir:
/Users/etuka/projects/baml/onethousand/build/CMakeFiles/CMakeTmp</span></div>
<div style="margin: 0px; color: rgb(255, 0, 0); "><br>
</div>
<p style="margin: 0px; "><span style=" color:#ff0000;"> </span></p>
<div style="margin: 0px; color: rgb(255, 0, 0); "><br>
</div>
<div style="margin: 0px; "><span style=" color:#ff0000;"> Run
Build Command:/Developer/CMake\
2.8-8.app/Contents/bin/cmakexbuild</span></div>
<div style="margin: 0px; "><span style=" color:#ff0000;"> -project
CMAKE_TRY_COMPILE.xcode build -target
cmTryCompileExec3395723889</span></div>
<div style="margin: 0px; "><span style=" color:#ff0000;">
-buildstyle Development</span></div>
<div style="margin: 0px; color: rgb(255, 0, 0); "><br>
</div>
<div style="margin: 0px; "><span style=" color:#ff0000;">
xcodebuild: error: option '-buildstyle' is no longer supported</span><!--EndFragment--></div>
<div style="margin: 0px; "><span style=" color:#ff0000;"><br>
</span></div>
<div style="margin: 0px; ">I understand that this error is
associated with earlier versions of Cmake that are incompatible
with Xcode 4.4. I have tried removing all traces of CMake 2.8.8
that I can from my system and re-installing, but I cannot get
rid of this error. I would be grateful for suggestions of what
to try next.</div>
<div style="margin: 0px; "><br>
</div>
<div style="margin: 0px; ">Thanks,</div>
<div style="margin: 0px; "><br>
</div>
<div style="margin: 0px; ">Etuka Onono</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
</body>
</html>