Hi,

You can change it using a toolchain file.
We use something like this:

SET(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION com.foo.compilers.llvmgcc42
CACHE STRING "" FORCE)

On Fri, Feb 3, 2012 at 11:49 AM, MM <[email protected]> wrote:
> Hi,
>
> Does the xcode generator on cmake 2.8.3 allow specifying a different gcc
> from the one installed by default?
> Upgrading to a newer cmake is not a problem.
>
> Do I set CMAKE_CXX_COMPILER to the gcc46 binary ?
>
> I also have to add some xcode plugin for gcc46, don't I?
>
> MM
>
> --
>
> 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