From 991b551595b9ad22ee6556c3e89c34cd7a92b199 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 26 Apr 2002 09:55:32 -0400 Subject: [PATCH] ENH: fix build name --- Source/cmBuildNameCommand.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmBuildNameCommand.cxx b/Source/cmBuildNameCommand.cxx index 6188ea61f..b55110686 100644 --- a/Source/cmBuildNameCommand.cxx +++ b/Source/cmBuildNameCommand.cxx @@ -60,8 +60,9 @@ bool cmBuildNameCommand::InitialPass(std::vector 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, "/", "_");