[CMake] Bug? project(X T) returns weird error
Michael Wild
themiwi at gmail.com
Wed Jul 21 10:03:08 EDT 2010
On 21. Jul, 2010, at 15:48 , Olaf van der Spek wrote:
> 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)
>
> $ 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
> CMake Error: Error required internal CMake variable not set, cmake may
> be not be built correctly.
> Missing variable is:
> CMAKE_T_COMPILER
> CMake Error: Could not find cmake module
> file:/home/olaf/xbt/Tracker/CMakeFiles/CMakeTCompiler.cmake
> CMake Error: Could not find cmake module file:CMakeTInformation.cmake
> CMake Error: CMAKE_T_COMPILER not set, after EnableLanguage
> -- Configuring incomplete, errors occurred!
>
> $
Well, it says what's wrong: CMake can't find the required files to enable the language T. Anyways, I'm not sure it's a good idea to use a project name with embedded spaces...
Michael
More information about the CMake
mailing list