ENH: fix build name

This commit is contained in:
Bill Hoffman 2002-04-26 09:55:32 -04:00
parent 4879c6cffa
commit 991b551595
1 changed files with 2 additions and 1 deletions

View File

@ -60,8 +60,9 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args)
}
}
}
std::string compiler = "-${CMAKE_CXX_COMPILER}";
std::string compiler = "${CMAKE_CXX_COMPILER}";
m_Makefile->ExpandVariablesInString ( compiler );
buildname += "-";
buildname += cmSystemTools::GetFilenameName(compiler);
cmSystemTools::ReplaceString(buildname,
"/", "_");