Browse Source

ENH: fix build name

Bill Hoffman 23 years ago
parent
commit
991b551595
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmBuildNameCommand.cxx

+ 2 - 1
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,
                                "/", "_");