Hi Andrew,

I do this from a toolchain file (ie, cmake
-DCMAKE_TOOLCHAIN_FILE=mytoolchainfile.cmake)

SET(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION my.compiler.here.llvmgcc42 CACHE
STRING "" FORCE)

and it works OK.

/Johan

On Fri, Jan 28, 2011 at 2:39 PM, Andrew Corrigan
<acorr...@lcp.nrl.navy.mil> wrote:
> I use the latest released version of CMake  When I set the compiler with 
> CMake for the XCode generator my choice of compiler is completely ignored, 
> and I have to manually select the compiler within XCode.  In particular, I 
> want to be able to select the Intel compilers, as opposed to Gcc-4.2.  There 
> is a discussion on this list [1] from last June which discusses the same 
> problem, without any resolution . without any resolution. It seems to me that 
> this is a bug.    Are there any workarounds to this issue which are better 
> than having to set the compiler manually every time I regenerate my XCode 
> project?
>
> Thanks,
> Andrew Corrigan
>
> [1] http://www.cmake.org/pipermail/cmake/2010-June/037353.html
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to