From f1c5b50cb7ede677ea16c64da942397c42bdc6d5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 24 Jan 2008 16:11:06 -0500 Subject: [PATCH] COMP: Cannot do MD5 from KWSys during CMake bootstrap. --- Source/cmSystemTools.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 89961da44..aba375d99 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,