summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-07-27 14:37:12 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-07-27 14:37:12 (GMT)
commit1756aa5780571879ffbc2f77c2ae04cc1953002b (patch)
tree2c0286ae08fc040f325aa67b53146ecca2a2207b /Source
parentdbbe605e74981331368e171f87bbd0837aaceeb2 (diff)
downloadCMake-1756aa5780571879ffbc2f77c2ae04cc1953002b.zip
CMake-1756aa5780571879ffbc2f77c2ae04cc1953002b.tar.gz
CMake-1756aa5780571879ffbc2f77c2ae04cc1953002b.tar.bz2
ENH: move changes from main tree to branch
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx1
-rw-r--r--Source/cmCommandArgumentParserHelper.cxx2
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx2
-rw-r--r--Source/cmMakefile.cxx2
-rw-r--r--Source/cmSystemTools.cxx2
5 files changed, 5 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 28cbc61..3ec419a 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -684,6 +684,7 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
<< std::endl;
cmCTestLog(this->CTest, ERROR_MESSAGE, "Unable to find executable: "
<< args[1].c_str() << std::endl);
+ cres.Output = "Unable to find executable: " + args[1];
if ( !this->CTest->GetShowOnly() )
{
cres.FullCommandLine = actualCommand;
diff --git a/Source/cmCommandArgumentParserHelper.cxx b/Source/cmCommandArgumentParserHelper.cxx
index 51a4d3a..1d37a34 100644
--- a/Source/cmCommandArgumentParserHelper.cxx
+++ b/Source/cmCommandArgumentParserHelper.cxx
@@ -139,7 +139,7 @@ void cmCommandArgumentParserHelper::AllocateParserType
pt->str = 0;
if ( len == 0 )
{
- len = (int)strlen(str);
+ len = static_cast<int>(strlen(str));
}
if ( len == 0 )
{
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 0a2226f..444fc92 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -791,7 +791,7 @@ cmGlobalUnixMakefileGenerator3
}
commands.push_back(progCmd.str());
}
- progressDir = "Building target ";
+ progressDir = "Built target ";
progressDir += t->first;
lg->AppendEcho(commands,progressDir.c_str());
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 5027021..bbcc044 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -905,7 +905,7 @@ void cmMakefile::AddLinkLibraryForTarget(const char *target,
{
cmOStringStream e;
e << "Attempt to add link target " << lib << " of type: "
- << cmTarget::TargetTypeNames[(int)tgt->GetType()]
+ << cmTarget::TargetTypeNames[static_cast<int>(tgt->GetType())]
<< "\nto target " << target
<< ". You can only link to STATIC or SHARED libraries.";
// in older versions of cmake linking to modules was allowed
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index bc9af6a..4d257b2 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1338,7 +1338,7 @@ std::string cmSystemTools::MakeXMLSafe(const char* str)
&& ch != '\r' )
{
char buffer[33];
- sprintf(buffer, "&lt;%d&gt;", (int)ch);
+ sprintf(buffer, "&lt;%d&gt;", static_cast<int>(ch));
//sprintf(buffer, "&#x%0x;", (unsigned int)ch);
result.insert(result.end(), buffer, buffer+strlen(buffer));
}