[CMake] Missing Internal Variables

William A. Hoffman billlist at nycap.rr.com
Fri Jul 14 12:18:08 EDT 2006


Sounds like the PROJECT command is bad.

Anything after the first space is considered a language for
cmake to enable.

Do you have:

PROJECT(myproect do something)

-Bill


At 12:11 PM 7/14/2006, Flávio P. Duarte wrote:
>Hi,
>        I am trying to use CMake for first time. To accomplish that, I've
>created a simple project which is basically one file.
>        Whenever I run cmake I get a bunch of error messages:
>$ cmake .
>CMake Error: Error required internal CMake variable not set, cmake may
>be not be built correctly.
>Missing variable is:
>CMAKE_do_COMPILER_ENV_VAR
>CMake Error: Error required internal CMake variable not set, cmake may
>be not be built correctly.
>Missing variable is:
>CMAKE_do_COMPILER
>CMake Error: Could not find cmake module
>file:/home/fd/tests/CMake/Project01/CMakeFiles/CMakedoCompiler.cmake
>CMake Error: Error required internal CMake variable not set, cmake may
>be not be built correctly.
>Missing variable is:
>CMAKE_CMake_COMPILER_ENV_VAR
>CMake Error: Error required internal CMake variable not set, cmake may
>be not be built correctly.
>Missing variable is:
>CMAKE_CMake_COMPILER
>CMake Error: Could not find cmake module
>file:/home/fd/tests/CMake/Project01/CMakeFiles/CMakeCMakeCompiler.cmake
>CMake Error: Error required internal CMake variable not set, cmake may
>be not be built correctly.
>Missing variable is:
>CMAKE_-_COMPILER_ENV_VAR
>CMake Error: Error required internal CMake variable not set, cmake may
>be not be built correctly.
>Missing variable is:
>CMAKE_-_COMPILER
>CMake Error: Could not find cmake module
>file:/home/fd/tests/CMake/Project01/CMakeFiles/CMake-Compiler.cmake
>CMake Error: Error required internal CMake variable not set, cmake may
>be not be built correctly.
>Missing variable is:
>CMAKE_01_COMPILER_ENV_VAR
>CMake Error: Error required internal CMake variable not set, cmake may
>be not be built correctly.
>Missing variable is:
>CMAKE_01_COMPILER
>CMake Error: Could not find cmake module
>file:/home/fd/tests/CMake/Project01/CMakeFiles/CMake01Compiler.cmake
>CMake Error: CMAKE_do_COMPILER not set, after EnableLanguage
>CMake Error: CMAKE_CMake_COMPILER not set, after EnableLanguage
>CMake Error: CMAKE_-_COMPILER not set, after EnableLanguage
>CMake Error: CMAKE_01_COMPILER not set, after EnableLanguage
>-- Configuring done
>
>I ma using cmake 2.4.2 (both precompiled and source packages).
>
>My configuration is:
>  Linux Distribuition: CentOS 3.7
>  gmake 3.79.1
>  gcc/g++ 3.2.3
>
>  Am I doing something wrong or it is a bug ?
>
>Flavio
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list