[CMake] using matlab mex compiler with cmake on windows
Jaka Katrašnik
jaka.katrasnik at gmail.com
Fri Sep 23 09:00:06 EDT 2011
But which one?
I'm trying to follow the steps of this tutorial (
http://www.vtk.org/Wiki/CMake:MatlabMex). 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.
On Fri, Sep 23, 2011 at 4:44 AM, David Cole <david.cole at kitware.com> wrote:
> You can't set CC and CXX and use them with the Visual Studio generators.
> Try using a makefile generator instead...
>
> HTH,
> David
>
>
>
> On Thursday, September 22, 2011, Jaka Katrašnik <jaka.katrasnik at gmail.com>
> wrote:
> > Hi,
> >
> > 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
> >
> > E:\Jaka_docs\cmake tutorial\step1>cmake .
> > -- Building for: Visual Studio 10
> > CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeDet
> > ermineCCompiler.cmake:44 (MESSAGE):
> > Could not find compiler set in environment variable CC:
> >
> > mex.
> > Call Stack (most recent call first):
> > CMakeLists.txt:2 (project)
> >
> >
> > CMake Error: Could not find cmake module file:E:/Jaka_docs/cmake
> tutorial/step1/
> > CMakeFiles/CMakeCCompiler.cmake
> > CMake Error: Could not find cmake module file:E:/Jaka_docs/cmake
> tutorial/step1/
> > CMakeFiles/CMakeCXXCompiler.cmake
> > -- Configuring incomplete, errors occurred!
> >
> >
> > Has anyone had a similar problem? Do you know of a solution to this?
> >
> > Thank you
> > Jaka Katrasnik
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110923/faef3dfc/attachment.htm>
More information about the CMake
mailing list