diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-03-06 17:26:40 +0100 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-03-12 13:39:11 -0400 |
commit | 1bdd1675776e6416b23cc6b308269aeb0831bb2e (patch) | |
tree | 3f2209de4cb293a60df3c25ac0c54681b32b8914 /Source/cmGeneratorExpression.cxx | |
parent | 254687d31f2f45b0d3ce9085c013ab0e15b360de (diff) | |
download | cmake-1bdd1675776e6416b23cc6b308269aeb0831bb2e.tar.gz |
Restore support for target names with '+' (#13986)
Extend the range of valid target names with the + sign. This character
can commonly be used for target names, such as those containing 'c++'.
Add a test but skip it for Borland and Watcom tools which do not support
the character.
Suggested-By: Benjamin Kloster
Diffstat (limited to 'Source/cmGeneratorExpression.cxx')
-rw-r--r-- | Source/cmGeneratorExpression.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx index 7ea58fa879..3f59129198 100644 --- a/Source/cmGeneratorExpression.cxx +++ b/Source/cmGeneratorExpression.cxx @@ -393,7 +393,7 @@ bool cmGeneratorExpression::IsValidTargetName(const std::string &input) cmsys::RegularExpression targetNameValidator; // The ':' is supported to allow use with IMPORTED targets. At least // Qt 4 and 5 IMPORTED targets use ':' as the namespace delimiter. - targetNameValidator.compile("^[A-Za-z0-9_.:-]+$"); + targetNameValidator.compile("^[A-Za-z0-9_.:+-]+$"); return targetNameValidator.find(input.c_str()); } |