MantisBT - CMake
View Issue Details
0014464CMakeCMakepublic2013-10-08 15:032014-03-05 09:58
James Bigler 
Brad King 
normalminoralways
closedduplicate 
Windows7x64
CMake 2.8.12 
 
0014464: Function name with a single letter doesn't work
Given the following cmake code:


function(x)
  message("hi")
endfunction()

x()

CMake will produce this error:

Parse error. Expected a command name, got unquoted argument with text "x".

If you change the function to have more than one character, then it works properly:

function(xx)
  message("hi")
endfunction()

xx()
Seems to affect version 2.8.10.1, but I haven't tried other versions.
No tags attached.
duplicate of 0014181closed Brad King One-character function names don't work 
Issue History
2013-10-08 15:03James BiglerNew Issue
2013-10-09 08:24Brad KingRelationship addedduplicate of 0014181
2013-10-09 08:24Brad KingStatusnew => resolved
2013-10-09 08:24Brad KingResolutionopen => duplicate
2013-10-09 08:24Brad KingAssigned To => Brad King
2014-03-05 09:58Robert MaynardNote Added: 0035278
2014-03-05 09:58Robert MaynardStatusresolved => closed

Notes
(0035278)
Robert Maynard   
2014-03-05 09:58   
Closing resolved issues that have not been updated in more than 4 months