[CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

Bill Hoffman bill.hoffman at kitware.com
Thu Dec 6 18:41:50 EST 2007


Olumide wrote:
>>> CMake Error: Could not find cmake module file:C:/Program Files/Common 
>>> Files/System/Mapi/1033/CMakeFiles/CMakeCXXCompiler.cmake
>>> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
>>> CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
>>> -- Configuring done
>>>

Are you running in this directory:
C:/Program Files/Common Files/System/Mapi/1033?

Can you give the version of cmake and exact commands you are running? 
Can you create a very simple project?

Try this:

1. mkdir test
2. cd test
3. create a CMakeLists.txt in test with the following in it:
add_executable(foo foo.cxx)

4. mkdir b
5 cd b
6. cmake -G"NMake Makefiles" ..

Do this all from the visual studio command shell.

-Bill







More information about the CMake mailing list