[cmake-developers] [CMake 0014464]: Function name with a single letter doesn't work

Mantis Bug Tracker mantis at public.kitware.com
Tue Oct 8 15:03:42 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14464 
====================================================================== 
Reported By:                James Bigler
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14464
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-10-08 15:03 EDT
Last Modified:              2013-10-08 15:03 EDT
====================================================================== 
Summary:                    Function name with a single letter doesn't work
Description: 
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()

Additional Information: 
Seems to affect version 2.8.10.1, but I haven't tried other versions.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-10-08 15:03 James Bigler   New Issue                                    
======================================================================




More information about the cmake-developers mailing list