diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-02-06 21:32:09 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-02-06 21:32:09 (GMT) |
commit | 185cb0b5bf4b88b6840a01d2bdd314982b6f0626 (patch) | |
tree | f876897d44cd96499670da2181ea33e69b40ca52 /Source | |
parent | a5d2c59c39a37ed3d6ed7515bec69291add211c6 (diff) | |
download | CMake-185cb0b5bf4b88b6840a01d2bdd314982b6f0626.zip CMake-185cb0b5bf4b88b6840a01d2bdd314982b6f0626.tar.gz CMake-185cb0b5bf4b88b6840a01d2bdd314982b6f0626.tar.bz2 |
ENH: allow for - in the name of targets for nmake
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index cd107d7..b66e407 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -2561,7 +2561,8 @@ cmLocalUnixMakefileGenerator3 // if there is no restriction on the length of make variables // and there are no "." charactors in the string, then return the // unmodified combination. - if(!m_MakefileVariableSize && unmodified.find('.') == s.npos) + if((!m_MakefileVariableSize && unmodified.find('.') == s.npos) + && (!m_MakefileVariableSize && unmodified.find('-') == s.npos)) { return unmodified; } @@ -2580,6 +2581,7 @@ cmLocalUnixMakefileGenerator3 if(!m_MakefileVariableSize) { cmSystemTools::ReplaceString(ret, ".", "_"); + cmSystemTools::ReplaceString(ret, "-", "__"); int ni = 0; char buffer[5]; // make sure the _ version is not already used, if |