[CMake] XCode compiler selection

2011-01-28 Thread Andrew Corrigan
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.

Re: [CMake] XCode compiler selection

2011-01-28 Thread Johan Björk
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:

Re: [CMake] XCode compiler selection

2011-01-28 Thread David Cole
On Fri, Jan 28, 2011 at 8:39 AM, 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