MantisBT - CMake
View Issue Details
0013945CMakeCMakepublic2013-02-22 13:492016-06-10 14:31
Lee McCuller 
Kitware Robot 
normalminoralways
closedmoved 
LinuxArch
CMake 2.8.10.2 
 
0013945: unhelpful error (and build failure) when project name has space in it
when the project() command is given with a project name with a space in it, the error report complains of"

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.

and refuses to build, not indicating that the project name is invalid.
Run cmake on a directory with this CMakeLists.txt:

"
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(proj separated)
"

and the output should be similar to:

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_separated_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_separated_COMPILER
CMake Error: Could not find cmake module file:/home/mcculler/today/cmake/build/CMakeFiles/2.8.10.2/CMakeseparatedCompiler.cmake
CMake Error: Could not find cmake module file:CMakeseparatedInformation.cmake
CMake Error: CMAKE_separated_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
No tags attached.
Issue History
2013-02-22 13:49Lee McCullerNew Issue
2013-02-22 15:03Bill HoffmanNote Added: 0032361
2013-02-22 16:12Lee McCullerNote Added: 0032362
2016-06-10 14:28Kitware RobotNote Added: 0042233
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0032361)
Bill Hoffman   
2013-02-22 15:03   
Not sure if that can be fixed. You asked for a project named proj using the language called separated. I suppose the error message might say something about failing to enable or recognize the language "separated". But, CMake is a space separated language and this is documented in the project command.
(0032362)
Lee McCuller   
2013-02-22 16:12   
Ah, that makes sense. I filed it just because I had done it by accident and it wasn't immediately obvious what I had done wrong.

I think it would be clearer if the command were set up
project(name LANGUAGES lang_1 lang_2 ...)
but this would not be backwards-compatible and so is probably not worth it.
(0042233)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.