[CMake] [mingw + cmake] Porting code from mac os x to windows

Jean-Philippe Doyon doyonjea at gmail.com
Tue Mar 27 12:20:57 EDT 2012


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++
loading initial cache file MAKE_CXX_COMPILER=/usr/local/i386-
mingw32-4.3.0/bin/i386-mingw32-g++
CMake Error: Error processing file:MAKE_CXX_COMPILER=/usr/local/i386-
mingw32-4.3.0/bin/i386-mingw32-g++
-- Configuring incomplete, errors occurred!

      Could you help me please.

Best
JP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120327/62675e5a/attachment.htm>


More information about the CMake mailing list