summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-24 21:11:06 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-24 21:11:06 (GMT)
commitf1c5b50cb7ede677ea16c64da942397c42bdc6d5 (patch)
tree2ce44ad12a38b720e1716f07712e824909a6ee53
parent1dec54489afdaf418175d3a86b6e0edca349fb3b (diff)
downloadCMake-f1c5b50cb7ede677ea16c64da942397c42bdc6d5.zip
CMake-f1c5b50cb7ede677ea16c64da942397c42bdc6d5.tar.gz
CMake-f1c5b50cb7ede677ea16c64da942397c42bdc6d5.tar.bz2
COMP: Cannot do MD5 from KWSys during CMake bootstrap.
-rw-r--r--Source/cmSystemTools.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 89961da..aba375d 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1131,6 +1131,7 @@ bool cmSystemTools::ComputeFileMD5(const char* source, char* md5out)
std::string cmSystemTools::ComputeStringMD5(const char* input)
{
+#if defined(CMAKE_BUILD_WITH_CMAKE)
char md5out[32];
cmsysMD5* md5 = cmsysMD5_New();
cmsysMD5_Initialize(md5);
@@ -1138,6 +1139,10 @@ std::string cmSystemTools::ComputeStringMD5(const char* input)
cmsysMD5_FinalizeHex(md5, md5out);
cmsysMD5_Delete(md5);
return std::string(md5out, 32);
+#else
+ (void)input;
+ cmSystemTools::Message("md5sum not supported in bootstrapping mode","Error");
+#endif
}
void cmSystemTools::Glob(const char *directory, const char *regexp,