From e69958c3cf6974009fd26785b4938003d70f8450 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 16 Jul 2007 15:10:40 -0400 Subject: BUG: fix bootstrapping, md5sum disabled in bootstrapping mode Alex --- Source/cmSystemTools.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 5e1a38b..5712291 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -22,7 +22,6 @@ #include #include #include -#include // support for realpath call #ifndef _WIN32 @@ -51,6 +50,7 @@ # include // auto_ptr # include # include +# include #endif #if defined(__sgi) && !defined(__GNUC__) @@ -1049,6 +1049,7 @@ bool cmSystemTools::CopyFileIfDifferent(const char* source, bool cmSystemTools::ComputeFileMD5(const char* source, char* md5out) { +#if defined(CMAKE_BUILD_WITH_CMAKE) if(!cmSystemTools::FileExists(source)) { return false; @@ -1089,8 +1090,11 @@ bool cmSystemTools::ComputeFileMD5(const char* source, char* md5out) cmsysMD5_Delete(md5); fin.close(); - return true; +#else + cmSystemTools::Message("md5sum not supported in bootstrapping mode","Error"); + return false; +#endif } void cmSystemTools::Glob(const char *directory, const char *regexp, -- cgit v0.12