FIX: BuildName removes path to compiler and converts any illegal characters

This commit is contained in:
Jim Miller 2001-07-02 16:30:40 -04:00
parent 6307ffbb65
commit c453f2fc7a
1 changed files with 7 additions and 7 deletions

View File

@ -68,18 +68,18 @@ bool cmBuildNameCommand::InitialPass(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;
buildname += cmSystemTools::GetFilenameName(compiler);
cmSystemTools::ReplaceString(buildname,
"/", "_");
cmSystemTools::ReplaceString(buildname,
"(", "_");
cmSystemTools::ReplaceString(buildname,
")", "_");
cmCacheManager::GetInstance()->
AddCacheEntry("BUILDNAME",