But which one?<br><div class="gmail_quote"><br>I'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't know how to apply the patch that is referenced in it. The patch is for Linux machines and I'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"><<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can'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 <<a href="mailto:jaka.katrasnik@gmail.com" target="_blank">jaka.katrasnik@gmail.com</a>> wrote:<br>
> Hi,<br>><br>> I'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>><br>> E:\Jaka_docs\cmake tutorial\step1>cmake .<br>
> -- Building for: Visual Studio 10<br>> CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDet<br>> ermineCCompiler.cmake:44 (MESSAGE):<br>> Could not find compiler set in environment variable CC:<br>
><br>> mex.<br>> Call Stack (most recent call first):<br>> CMakeLists.txt:2 (project)<br>><br>><br>> CMake Error: Could not find cmake module file:E:/Jaka_docs/cmake tutorial/step1/<br>> CMakeFiles/CMakeCCompiler.cmake<br>
> CMake Error: Could not find cmake module file:E:/Jaka_docs/cmake tutorial/step1/<br>> CMakeFiles/CMakeCXXCompiler.cmake<br>> -- Configuring incomplete, errors occurred!<br>><br>><br>> Has anyone had a similar problem? Do you know of a solution to this?<br>
><br>> Thank you<br>> Jaka Katrasnik<br>><br>>
</div></div></blockquote></div><br>
</div></div></div><br>