[CMake] How to pass a flag to be used by cmake?

2012-07-09 Thread Georgios Petasis
Hi all, I want to build 32-bit binaries on a 64-bit Linux system, with gcc. In projects that use configure, this is easy: export CFLAGS=-m32 But how can I do the same with cmake projects? cmake does not seem to use CFLAGS. Is there a variable I can define when I run cmake, to pass the -m32

Re: [CMake] How to pass a flag to be used by cmake?

2012-07-09 Thread Mateusz Loskot
On 9 July 2012 11:47, Georgios Petasis petas...@yahoo.gr wrote: I want to build 32-bit binaries on a 64-bit Linux system, with gcc. In projects that use configure, this is easy: export CFLAGS=-m32 But how can I do the same with cmake projects? You do the same cmake does not seem to use