<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Alan,<br><br>> > Just like CMake is able to distinguish different versions of Visual Studio,<br>> > would it distinguish MinGW-32 with MinGW-64 also (which means either both<br>> > would be in path simultaneously, or neither would be, and cmake picks the<br>> > right one based on the generator specifed)? Let me know if so, and I'll be<br>> > happy to test this.<br>> <br>> I had never heard of those MinGW variants until you mentioned them, and it<br>> appears CMake is not specifically aware of them either. I presume that's<br>> why you had to rename to gcc.exe (something CMake specifically recognizes)<br>> to get them to work. But that is a brute-force way to get CMake to<br>> recognize a compiler with a different name. I would forget the renaming,<br>> and instead use CMAKE_<LANG>_COMPILER (e.g., CMAKE_C_COMPILER,<br>> CMAKE_CXX_COMPILER, etc.) to allow you to choose which compiler (the 32-bit<br>> variant or 64-bit variant) you want to use. See the CMake documentation for<br>> how to use CMAKE_<LANG>_COMPILER.<br><br>Just FYI:<br><br>Reading the change-log for RC1 and RC2 (see below), I assuming that CMake has gained ability to build on MinGW-W64 (see below). As I now know, CMake 2.8 builds on MinGW-W64 already.<br><pre>Changes in CMake 2.8.2-rc1 (since 2.8.1):<br>- Build on Tru64 (#10542)<br>- Build on mingw-w64<br>...<br></pre>I'll look into your suggestion again. In general, the prefixes and renaming issue with MinGW is a MinGW issue I would
think. And this needs to be done not just for g++.exe, but some 15-20 .exe files in the bin folder. In fact to keep things compatible with different tools, they already put one file under several names!<br><br>Best regards - Alok<br>                                            <br /><hr />The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. <a href='http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4' target='_new'>Get busy.</a></body>
</html>