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                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to