View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014464CMakeCMakepublic2013-10-08 15:032014-03-05 09:58
ReporterJames Bigler 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformOSWindowsOS Version7x64
Product VersionCMake 2.8.12 
Target VersionFixed in Version 
Summary0014464: Function name with a single letter doesn't work
DescriptionGiven 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()
Additional InformationSeems to affect version 2.8.10.1, but I haven't tried other versions.
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0014181closedBrad King One-character function names don't work 

  Notes
(0035278)
Robert Maynard (manager)
2014-03-05 09:58

Closing resolved issues that have not been updated in more than 4 months

 Issue History
Date Modified Username Field Change
2013-10-08 15:03 James Bigler New Issue
2013-10-09 08:24 Brad King Relationship added duplicate of 0014181
2013-10-09 08:24 Brad King Status new => resolved
2013-10-09 08:24 Brad King Resolution open => duplicate
2013-10-09 08:24 Brad King Assigned To => Brad King
2014-03-05 09:58 Robert Maynard Note Added: 0035278
2014-03-05 09:58 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team