MantisBT - CMake
View Issue Details
0014181CMakeCMakepublic2013-05-30 17:382014-03-05 09:58
Wojciech Knapik 
Brad King 
lowminoralways
closedfixed 
x86_64Linux3.3.8
CMake 2.8.10.2 
CMake 3.0CMake 3.0 
0014181: One-character function names don't work
$ cat CMakeLists.txt
function(a)
endfunction()
a()
$ cmake .
CMake Error: Error in cmake code at
/tmp/CMakeLists.txt:3:
Parse error. Expected a command name, got unquoted argument with text "a".
-- Configuring incomplete, errors occurred!
$
No tags attached.
has duplicate 0014464closed Brad King Function name with a single letter doesn't work 
Issue History
2013-05-30 17:38Wojciech KnapikNew Issue
2013-05-31 08:12Brad KingNote Added: 0033162
2013-05-31 08:12Brad KingStatusnew => backlog
2013-10-09 08:24Brad KingRelationship addedhas duplicate 0014464
2013-10-21 09:04Brad KingNote Added: 0034183
2013-10-21 09:04Brad KingAssigned To => Brad King
2013-10-21 09:04Brad KingStatusbacklog => resolved
2013-10-21 09:04Brad KingResolutionopen => fixed
2013-10-21 09:04Brad KingFixed in Version => CMake 3.0
2013-10-21 09:04Brad KingTarget Version => CMake 3.0
2014-03-05 09:58Robert MaynardNote Added: 0035290
2014-03-05 09:58Robert MaynardStatusresolved => closed

Notes
(0033162)
Brad King   
2013-05-31 08:12   
It looks like the lexer recognizes an "identifier" token only with at least 2 characters:

http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmListFileLexer.in.l;hb=v2.8.11#l106 [^]
(0034183)
Brad King   
2013-10-21 09:04   
Fixed:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=56457837 [^]
(0035290)
Robert Maynard   
2014-03-05 09:58   
Closing resolved issues that have not been updated in more than 4 months