summaryrefslogtreecommitdiffstats
path: root/Source/cmBuildNameCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-21 18:01:30 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-21 18:01:30 (GMT)
commit4ea1c51ebae49375bbb4bafce8e40a02741bda3a (patch)
treeb6d3bd9965e6961da314beaf0e585f38bfc3b835 /Source/cmBuildNameCommand.cxx
parentf0e21f196a3abe908d6179d3f5ac36d3ea583761 (diff)
downloadCMake-4ea1c51ebae49375bbb4bafce8e40a02741bda3a.zip
CMake-4ea1c51ebae49375bbb4bafce8e40a02741bda3a.tar.gz
CMake-4ea1c51ebae49375bbb4bafce8e40a02741bda3a.tar.bz2
clean up for build on its own
Diffstat (limited to 'Source/cmBuildNameCommand.cxx')
-rw-r--r--Source/cmBuildNameCommand.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmBuildNameCommand.cxx b/Source/cmBuildNameCommand.cxx
index a8c727a..8ec6e47 100644
--- a/Source/cmBuildNameCommand.cxx
+++ b/Source/cmBuildNameCommand.cxx
@@ -68,10 +68,15 @@ bool cmBuildNameCommand::Invoke(std::vector<std::string>& args)
if(reg.find(buildname.c_str()))
{
buildname = reg.match(1) + "-" + reg.match(2);
+ cmSystemTools::ReplaceString(buildname,
+ "/", "_");
+ cmSystemTools::ReplaceString(buildname,
+ "(", "_");
+ cmSystemTools::ReplaceString(buildname,
+ ")", "_");
}
}
}
-
std::string compiler = "-${CMAKE_CXX_COMPILER}";
m_Makefile->ExpandVariablesInString ( compiler );
buildname += compiler;