[CMake] Bug? project(X T) returns weird error

Eric Noulard eric.noulard at gmail.com
Wed Jul 21 10:03:41 EDT 2010


2010/7/21 Olaf van der Spek <olafvdspek at gmail.com>:
> Hi,
>
> I forgot to use quotes, but cmake doesn't make that obvious.
> Shouldn't it return a better error message?
>
> $ cat CMakeLists.txt
> project(X T)

If you read the documentation from the "project" command you read:

project(<projectname> [languageName1 languageName2 ... ] )

Thus you  are asking for the "T" language.

> $ cmake .
> CMake Error: Error required internal CMake variable not set, cmake may
> be not be built correctly.
> Missing variable is:
> CMAKE_T_COMPILER_ENV_VAR

Which is not found :-)

I'm not sure what you mean by " I forgot to use quotes"

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


More information about the CMake mailing list