[CMake] XCode + GCC 4.2

Hai Nguyen chaoticbob at gmail.com
Fri Dec 18 09:23:16 EST 2009


Downer.

Thanks!

- Hai

On Fri, Dec 18, 2009 at 5:58 AM, Brad King <brad.king at kitware.com> wrote:

> Hai Nguyen wrote:
> > I can't seem to get the combination of XCode and GCC 4.2 to be happy
> > with CMaka. I've tried several different ways to set the compiler
> > version. Setting the CMAKE_C/CXX_COMPILER doesn't seem to work. But if i
> > set the environment variabes, CMake comes back and tells me something
> > like this:
> >
> >   Run Build Command:/usr/local/bin/cmakexbuild -project
> >   CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec
> -configuration
> >   Debug
> >
> >   2009-12-18 00:50:45.858 xcodebuild[42636:331b] Warning: Couldn't
> discover
> >   the 'gcc-4.2' compiler's built-in search paths and preprocessor
> > definitions
> >   for language dialect 'c'.  This may lead to indexing issues.
> >
> >   Compiler: /Developer/Library/Xcode/Plug-ins/GCC
> >   4.0.xcplugin/Contents/Resources/gcc-4.2
> >
> >   Reason: sh: /Developer/Library/Xcode/Plug-ins/GCC
> >   4.0.xcplugin/Contents/Resources/gcc-4.2: No such file or directory
> >
> > What am I missing with here...?
>
> CMake doesn't yet support choosing the Xcode compiler.
>
>  http://www.cmake.org/Bug/view.php?id=9125
>
> -Brad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091218/89b70e5f/attachment.htm>


More information about the CMake mailing list