[CMake] How to pass a flag to be used by cmake?
Mateusz Loskot
mateusz at loskot.net
Mon Jul 9 06:59:45 EDT 2012
On 9 July 2012 11:47, Georgios Petasis <petasisg at 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 CFLAGS. Is there a variable I can define when I
> run cmake, to pass the -m32 flag to gcc?
The list archives is a mine for basic problems solutions:
http://www.cmake.org/pipermail/cmake/2009-April/028853.html
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
More information about the CMake
mailing list