Re: [CMake] Changing compiler

2011-04-21 Thread David Cole
On Thu, Apr 21, 2011 at 7:47 AM, David Doria wrote: > Sounds like you must have gotten errors when you built gcc... >> >> Pore through the log of what happened during the gcc build maybe? >> >> Are you building gcc from source, or using some package manager to build >> it for you? (MacPorts, some

Re: [CMake] Changing compiler

2011-04-21 Thread David Doria
> Sounds like you must have gotten errors when you built gcc... > > Pore through the log of what happened during the gcc build maybe? > > Are you building gcc from source, or using some package manager to build it > for you? (MacPorts, something else?) > FYI - there was no problem all along with t

Re: [CMake] Changing compiler

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 9:43 AM, David Doria wrote: > On Wed, Apr 20, 2011 at 9:04 AM, David Cole > wrote: > > If you are setting the CXX compiler, you should also probably be setting > the > > C compiler. > > > > I always use environment variables to do this: > > > > export CC=/home/doriad/sr

Re: [CMake] Changing compiler

2011-04-20 Thread David Doria
On Wed, Apr 20, 2011 at 9:04 AM, David Cole wrote: > If you are setting the CXX compiler, you should also probably be setting the > C compiler. > > I always use environment variables to do this: > >   export CC=/home/doriad/src/gcc-4.5.2/bin/gcc/gcc >   export CXX=/home/doriad/src/gcc-4.5.2/bin/gc

Re: [CMake] Changing compiler

2011-04-20 Thread David Cole
If you are setting the CXX compiler, you should also probably be setting the C compiler. I always use environment variables to do this: export CC=/home/doriad/src/gcc-4.5.2/bin/gcc/gcc export CXX=/home/doriad/src/gcc-4.5.2/bin/gcc/g++ ccmake ../../src/ITK If that still doesn't work, then i

[CMake] Changing compiler

2011-04-20 Thread David Doria
I am trying to build ITK with a non-system-standard compiler. I did so by running: ccmake ../../src/ITK/ -DCMAKE_CXX_COMPILER=/home/doriad/src/gcc-4.5.2/bin/gcc/g++ However, I get: --- CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE): The C++ compi

Re: [CMake] Changing compiler flags generated by cmake

2010-06-22 Thread Tyler Roscoe
On Tue, Jun 22, 2010 at 08:30:43PM -0700, ben scott wrote: > I know about the variable to add custom flags for g++, but how do I get rid > if > unwanted flags? I am writing a program for KDE on Linux and cmake insists on Something like: string(REPLACE "-ansi" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FL

[CMake] Changing compiler flags generated by cmake

2010-06-22 Thread ben scott
I know about the variable to add custom flags for g++, but how do I get rid if unwanted flags? I am writing a program for KDE on Linux and cmake insists on putting "-ansi" in the flags. One of the header files for a library uses "typeof" so I need to get rid of the ansi flag. Thank you. _

Re: [CMake] Changing compiler at runtime

2007-11-24 Thread Brandon Van Every
On Nov 25, 2007 2:12 AM, Gonzalo Garramuño <[EMAIL PROTECTED]> wrote: > > Recently, Josef Karthauser was requesting the ability to change the > compiler at runtime. > > I am now more or less seconding that request or asking for workarounds. > > The situation: > I have a complex project buil

[CMake] Changing compiler at runtime

2007-11-24 Thread Gonzalo Garramuño
Recently, Josef Karthauser was requesting the ability to change the compiler at runtime. I am now more or less seconding that request or asking for workarounds. The situation: I have a complex project built for windows that has several plug-ins that, for each version of the project, needs t