<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>I have seen this problem as we upgraded from older XCodes. In all the places where cmake looks at your version of Xcode except one, it looks at "xcode-select -print–path". In that one place, it looks in /Developer/Applications/XCode.app. I think this
bug is fixed in 2.8.9, and until then you can work around it by placing a symlink from /Developer/Applications/XCode.app to your actual Xcode installation.</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Etuka Onono <<a href="mailto:etuka@tesco.net">etuka@tesco.net</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, August 8, 2012 5:34 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:cmake@cmake.org">cmake@cmake.org</a>" <<a href="mailto:cmake@cmake.org">cmake@cmake.org</a>><br>
<span style="font-weight:bold">Subject: </span>[CMake] CMake 2.8.8 Upgrade problem with Xcode on OS X 10.8<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<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>
</div>
</div>
</span>
</body>
</html>