Re: [CMake] Configure 32 bit build in 64 bit environment from cli

2013-03-29 Thread Martin Koller
On Thursday 28 March 2013 15:03:41 Bill Hoffman wrote: > On 3/28/2013 2:19 PM, Martin Koller wrote: > > I'm doing this with a toolchain file, so that cmake sees this as > > cross-compiling. > > > > E.g. I have the following toolchain file "linux_i686.toolchain.cmake": > > > > # toolchain file for

Re: [CMake] Configure 32 bit build in 64 bit environment from cli

2013-03-29 Thread Nicola Mori
Thanks for your reply, Martin. Actually, I found that all my problems stem from the fact that my project correctly sets CMAKE_CXX_FLAGS when specifying -DCMAKE_CXX_FLAGS on CMake invocation, but then this setting is overridden by the settings of another project on which my projects depends (via

Re: [CMake] Configure 32 bit build in 64 bit environment from cli

2013-03-28 Thread Bill Hoffman
On 3/28/2013 2:19 PM, Martin Koller wrote: I'm doing this with a toolchain file, so that cmake sees this as cross-compiling. E.g. I have the following toolchain file "linux_i686.toolchain.cmake": # toolchain file for building a 32bit version on a 64bit host # use it like this: # cmake -DCMAKE

Re: [CMake] Configure 32 bit build in 64 bit environment from cli

2013-03-28 Thread Martin Koller
On Wednesday 27 March 2013 10:37:12 Nicola Mori wrote: > Hello, for my project I'd like to be able to configure a 32 bit build > with GCC in a 64 bit Linux environment by setting variables from command > line interface. As far as I understand of CMake, this can be > accomplished by setting CMAKE

[CMake] Configure 32 bit build in 64 bit environment from cli

2013-03-27 Thread Nicola Mori
Hello, for my project I'd like to be able to configure a 32 bit build with GCC in a 64 bit Linux environment by setting variables from command line interface. As far as I understand of CMake, this can be accomplished by setting CMAKE_CXX_FLAGS and CMAKE_SHARED_LINKER_FLAGS to "-m32" (my project