[cmake-developers] [CMake 0013986]: Target names may not contain a plus sign anymore

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 6 08:31:19 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13986 
====================================================================== 
Reported By:                Benjamin Kloster
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13986
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-03-06 08:31 EST
Last Modified:              2013-03-06 08:31 EST
====================================================================== 
Summary:                    Target names may not contain a plus sign anymore
Description: 
Since the latest revision in Git (commit efdf152), CMake balks at targets with a
plus sign in their name. Since it's a common practice to name C++ wrapper of
some libraries as MyLib++, that's a little strange. Attached is a diff that adds
the plus sign to the regex used to verify target names.

Steps to Reproduce: 
Invoke CMake with a CMakeLists.txt containing:

add_executable(mylib++ ${SOURCE_FILES})

It will fail with the error message "Target name not supported"

Additional Information: 
See also: http://www.mail-archive.com/cmake@cmake.org/msg45517.html
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-03-06 08:31 Benjamin KlosterNew Issue                                    
2013-03-06 08:31 Benjamin KlosterFile Added: allow_plus_sign.diff               
    
======================================================================




More information about the cmake-developers mailing list