[CMake] [mingw + cmake] Porting code from mac os x to windows
Andreas Mohr
andi at lisas.de
Wed Mar 28 02:33:11 EDT 2012
Hi,
On Wed, Mar 28, 2012 at 02:01:41AM -0400, cmake-request at cmake.org wrote:
> Date: Tue, 27 Mar 2012 18:20:57 +0200
> From: Jean-Philippe Doyon <doyonjea at gmail.com>
> Subject: [CMake] [mingw + cmake] Porting code from mac os x to windows
> To: cmake at cmake.org
> Message-ID:
> <CAEB8w_RfrPO-zj+dkwaE6rH4dioFv6LkR8SEMsgbSJDYcit4_Q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear all,
>
> I use mingw to port my code from mac to windows. For that, I
> have to indicate the compiler used by cmake to that of mingw.
> That is set CMAKE_CXX_COMPILER to "i386-mingw32-g++" (which compiles a
> binary for windows). You can see the command and the error below.
>
> cmake -DCMAKE_INSTALL_PREFIX=~/local/install/bpp/windows -
> CMAKE_CXX_COMPILER=/usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-g++
Would possibly be useful to specify the second variable via -D, too :)
HTH,
Andreas Mohr
More information about the CMake
mailing list