But which one?<br><div class="gmail_quote"><br>I&#39;m trying to follow the steps of this tutorial (<a href="http://www.vtk.org/Wiki/CMake:MatlabMex" target="_blank">http://www.vtk.org/Wiki/CMake:MatlabMex</a>). However I don&#39;t know how to apply the patch that is referenced in it. The patch is for Linux machines and I&#39;m using Windows.<div>
<div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Fri, Sep 23, 2011 at 4:44 AM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@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">

You can&#39;t set CC and CXX and use them with the Visual Studio generators. Try using a makefile generator instead...<br><br>HTH,<br><font color="#888888">David</font><div><div></div><div><br><br><br>On Thursday, September 22, 2011, Jaka Katrašnik &lt;<a href="mailto:jaka.katrasnik@gmail.com" target="_blank">jaka.katrasnik@gmail.com</a>&gt; wrote:<br>


&gt; Hi,<br>&gt;<br>&gt; I&#39;m having trouble using cmake to compile a matlab mex file. When I try to to use cmake with the CC CXX environment variables set to mex I get the following error<br>&gt;<br>&gt; E:\Jaka_docs\cmake tutorial\step1&gt;cmake .<br>


&gt; -- Building for: Visual Studio 10<br>&gt; CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDet<br>&gt; ermineCCompiler.cmake:44 (MESSAGE):<br>&gt;   Could not find compiler set in environment variable CC:<br>


&gt;<br>&gt;   mex.<br>&gt; Call Stack (most recent call first):<br>&gt;   CMakeLists.txt:2 (project)<br>&gt;<br>&gt;<br>&gt; CMake Error: Could not find cmake module file:E:/Jaka_docs/cmake tutorial/step1/<br>&gt; CMakeFiles/CMakeCCompiler.cmake<br>


&gt; CMake Error: Could not find cmake module file:E:/Jaka_docs/cmake tutorial/step1/<br>&gt; CMakeFiles/CMakeCXXCompiler.cmake<br>&gt; -- Configuring incomplete, errors occurred!<br>&gt;<br>&gt;<br>&gt; Has anyone had a similar problem? Do you know of a solution to this?<br>


&gt;<br>&gt; Thank you<br>&gt; Jaka Katrasnik<br>&gt;<br>&gt;
</div></div></blockquote></div><br>
</div></div></div><br>