summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-04-26 13:55:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-04-26 13:55:32 (GMT)
commit991b551595b9ad22ee6556c3e89c34cd7a92b199 (patch)
treecf321bcfe2d2570d526efd2f8a8ee84f2e02694d /Source
parent4879c6cffa27fa4e98f3bf2ae7328bb9f929e83f (diff)
downloadCMake-991b551595b9ad22ee6556c3e89c34cd7a92b199.zip
CMake-991b551595b9ad22ee6556c3e89c34cd7a92b199.tar.gz
CMake-991b551595b9ad22ee6556c3e89c34cd7a92b199.tar.bz2
ENH: fix build name
Diffstat (limited to 'Source')
-rw-r--r--Source/cmBuildNameCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmBuildNameCommand.cxx b/Source/cmBuildNameCommand.cxx
index 6188ea6..b551106 100644
--- a/Source/cmBuildNameCommand.cxx
+++ b/Source/cmBuildNameCommand.cxx
@@ -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,
"/", "_");