<div class="gmail_quote">On Thu, Nov 10, 2011 at 3:51 PM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">See my email about the VS variables and gmake version.  Also, you will need to set CC=cl and CXX=cl before running CMake, or when you run cmake-gui click on the Specify native compilers button after you select &quot;Unix Makefiles&quot;.  Then put in cl for the c and C++ compiler.  The confusion is coming from the subject of this message.  You are not asking how to generate for a cygwin tool chain.  You are asking how to you generate for gmake from cygwin with the VS tool chain, which is a totally different thing that using the cygwin compiler tool chain. Lucky for you this is my preferred tool set.  :)</div>
</blockquote><div><br></div><div>I think my incorrect subject is symbolic of the fact that I don&#39;t know what I&#39;m looking for ;)</div><div><br></div><div>So you&#39;re basically saying that from cmake-gui on Windows, point C and CXX to cl.exe? I did this but got a big fat error message:</div>
<div><br></div><div><p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style=" color:#ff0000;">CMake Error: CMake was unable to find a build program corresponding to &quot;Unix Makefiles&quot;.  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.</span></p>

<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style=" color:#ff0000;">CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.</span></p>

<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style=" color:#ff0000;">Missing variable is:</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style=" color:#ff0000;">CMAKE_C_COMPILER_ENV_VAR</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style=" color:#ff0000;">CMake Error: Could not find cmake module file:C:/Code/work/sandbox/cmake-gfe-dev/build2/CMakeFiles/CMakeCCompiler.cmake</span></p>

<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style=" color:#ff0000;">CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.</span></p>

<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style=" color:#ff0000;">Missing variable is:</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style=" color:#ff0000;">CMAKE_CXX_COMPILER_ENV_VAR</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style=" color:#ff0000;">CMake Error: Could not find cmake module file:C:/Code/work/sandbox/cmake-gfe-dev/build2/CMakeFiles/CMakeCXXCompiler.cmake</span></p>

<p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">Configuring incomplete, errors occurred!</p></div></div>