[CMake] using matlab mex compiler with cmake on windows

David Cole david.cole at kitware.com
Thu Sep 22 22:44:58 EDT 2011


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/20110922/4965b50f/attachment.htm>


More information about the CMake mailing list