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 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
--

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