[CMake] "could not find cmake module"

Eric Noulard eric.noulard at gmail.com
Sun Apr 10 07:17:34 EDT 2011


2011/4/9 Christian Vander Jagt <chrisvanderjagt at yahoo.com>:
> I am trying to use cmake to compile a program from source code, i am getting
> this error:
> CMake Error: Error required internal CMake variable not set, cmake may be
> not be
>  built correctly.
> Missing variable is:
> CMAKE_CXX_COMPILER_ENV_VAR
> CMake Error: Could not find cmake module
> file:C:/MinGW/msys/1.0/home/Kristy/CMak
> eFiles/CMakeCXXCompiler.cmake
> -- Configuring incomplete, errors occurred!

Could you provide us more informations:

Which version of CMake are you using?
Did compile it yourself and if not where did you get it?
You seems to be on a Windows platform, are using cygwin or "plain windows" ?
Which version of Windows are you using (XP, Vista, 7 etc...)
Which CMake generator are you trying to use ? Mingw+Makefile or ??
Could you show us your main CMakeLists.txt ?

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list