title: CMake 2.8.10.2 fails with Xcode 4.6
body: <p>I'm trying to build the <a href="http://alleg.sf.net" rel="nofollow">Allegro</a> 5.0.8 game library for iOS and it seems CMake 2.8.10.2 is failing with Xcode 4.6:</p>
  
  <pre>
  localhost:build steve$ cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-iphone.cmake -G Xcode ..
  -- The C compiler identification is Clang 4.2.0
  -- The CXX compiler identification is Clang 4.2.0
  -- Check for working C compiler using: Xcode
  -- Check for working C compiler using: Xcode -- broken
  CMake Error at /usr/local/Cellar/cmake/2.8.10.2/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
    The C compiler
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
    is not able to compile a simple test program.
  
    It fails with the following output:
  
     Change Dir: /Users/steve/DEV/allegro/allegro-5.0.8/build/CMakeFiles/CMakeTmp
  
  
  
    Run Build Command:/usr/local/Cellar/cmake/2.8.10.2/bin/cmakexbuild -project
    CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec2759687021
    -configuration Debug
  
    === BUILD NATIVE TARGET cmTryCompileExec2759687021 OF PROJECT
    CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===
  
    Check dependencies
  
    target specifies product type 'com.apple.product-type.tool', but there's no
    such product type for the 'iphoneos' platform
  
  
  
  
  
    ** BUILD FAILED **
  
  
  
  
  
    The following build commands failed:
  
      Check dependencies
  
    (1 failure)
  
  
  
  
  
    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:31 (project)
  
  
  -- Configuring incomplete, errors occurred!
  localhost:build steve$ cmake --version
  cmake version 2.8.10.2
  localhost:build steve$ 
  </pre>
  
  <p>Any ideas?</p>