summaryrefslogtreecommitdiffstats
path: root/Source/cmNMakeMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-03-14 19:58:28 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-03-14 19:58:28 (GMT)
commit15d365cdddf67fad82f80b1b0a028a6c1df2f6a3 (patch)
treecb8de571c2c4e5e8a2e14a22fd7be9d2e37f493e /Source/cmNMakeMakefileGenerator.cxx
parent567edf0e9a8f4dcaa82ceb0ae6a586867e3687f5 (diff)
downloadCMake-15d365cdddf67fad82f80b1b0a028a6c1df2f6a3.zip
CMake-15d365cdddf67fad82f80b1b0a028a6c1df2f6a3.tar.gz
CMake-15d365cdddf67fad82f80b1b0a028a6c1df2f6a3.tar.bz2
BUG: fix for files with dashes in them
Diffstat (limited to 'Source/cmNMakeMakefileGenerator.cxx')
-rw-r--r--Source/cmNMakeMakefileGenerator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmNMakeMakefileGenerator.cxx b/Source/cmNMakeMakefileGenerator.cxx
index 5cf1385..5e65fc5 100644
--- a/Source/cmNMakeMakefileGenerator.cxx
+++ b/Source/cmNMakeMakefileGenerator.cxx
@@ -711,3 +711,11 @@ std::string cmNMakeMakefileGenerator::ConvertToOutputPath(const char* s)
{
return cmSystemTools::ConvertToOutputPath(s);
}
+
+
+std::string cmNMakeMakefileGenerator::CreateMakeVariable(const char* s, const char* s2)
+{
+ std::string ret= std::string(s) + std::string(s2);
+ cmSystemTools::ReplaceString(ret, "-", "_");
+ return ret;
+}