[CMake] how to compile as 32bit on a 64bit Linux host ?

Yngve Inntjore Levinsen yngve.levinsen at gmail.com
Fri Feb 15 11:22:14 EST 2013


It is true, I actually never had problems just adding -m32 on my
machines, but I assumed some systems are more difficult than others..
But what do I know? :)

Cheers,
Yngve

On 15/02/13 16:33, clinton at elemtech.com wrote:
> Or simply specify -m32 at the first configure
> CFLAGS=-m32 CXXFLAGS=-m32 cmake ../src
>
> find_library() works correctly if you do that, and it automatically detects if the 32 bit libraries are in /usr/lib32 or /usr/lib.
>
> Clint


More information about the CMake mailing list