On Sat, 13 Aug 2011, laurent laffont wrote: (no quotes thx to gmail...) This issue was discussed several times. The simplest solution is to define CC as "gcc -m32" (and optionally CXX as "g++ -m32" if you need g++). Another solution is to check how cmake supports cross compilation. IIRC autotools has some flags for this. Levente