summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpression.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-03-06 16:26:40 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-12 17:39:11 (GMT)
commit1bdd1675776e6416b23cc6b308269aeb0831bb2e (patch)
tree3f2209de4cb293a60df3c25ac0c54681b32b8914 /Source/cmGeneratorExpression.cxx
parent254687d31f2f45b0d3ce9085c013ab0e15b360de (diff)
downloadCMake-1bdd1675776e6416b23cc6b308269aeb0831bb2e.zip
CMake-1bdd1675776e6416b23cc6b308269aeb0831bb2e.tar.gz
CMake-1bdd1675776e6416b23cc6b308269aeb0831bb2e.tar.bz2
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.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx
index 7ea58fa..3f59129 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());
}