<div>Hi</div>
<div>I have tried different ways to escape the MSVC compiler.</div>
<div>I have installed Cygwin on Windows 7 and try this out in Cygwin</div>
<div>I tried to</div>
<div>- set CMAKE_CC_COMPILER=compiler.exe in CMakeLists.txt (before project())</div>
<div>- cmake.exe -D CMAKE_CC_COMPILER=compiler.exe .</div>
<div>
<div>- cmake.exe -D CMAKE_CC_COMPILER=/c/compiler/compiler.exe .</div></div>
<div>But when cmake.exe is executed, it finds the MSVC compiler:</div>
<div>$ which compiler.exe</div>
<div>/c/compiler/compiler.exe</div>
<div>$ cat cmake.sh</div>
<div>cmake.exe -D CMAKE_C_COMPILER=compiler.exe .</div>
<div>$ ./cmake.sh</div>
<div>-- Building for: Visual Studio 10</div>
<div>-- ...</div>
<div> </div>
<div>Is it because I don&#39;t include -G &quot;My generator&quot;? if so what is included in a generator?</div>
<div> </div>
<div>Thank you very much</div>
<div>Paul</div>
<div> </div>