[CMake] Distinction between Windows Compilers

dravion.smith at gmx.net dravion.smith at gmx.net
Mon Nov 4 09:45:06 EST 2013


Hi,

Is there an Way to choose diffrent Windows Compilers Versions for (Win64 
and Win32)?

For Example:

If i want to do a Windows 64-Bit build build
cmake should use:
     x86_64-w64-mingw32-g++.exe (but not Cygwin and NOT Mingw/Msys)
OR
     Visual C/C++  Win64 Compiler

If i want to do a Windows 32-Bit build
it is:
i686-w64-mingw32-g++.exe
     OR
MS VC++ Win32 Compiler

I figured out if i use IF(MINGW) it will not distinct between the 
diffreent Windows GCC branches,
how can i archive this and stop if the Compiler is Cygwin/Msys?

Drav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131104/54ff22c4/attachment.htm>


More information about the CMake mailing list