diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-07-16 19:10:40 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-07-16 19:10:40 (GMT) |
commit | e69958c3cf6974009fd26785b4938003d70f8450 (patch) | |
tree | c0dd7a527ad69dfd3cb69018140cc79f804def26 /Source/cmSystemTools.cxx | |
parent | edb0a70d1fc0cb7f133835e5ec57ebe63aa4cd14 (diff) | |
download | CMake-e69958c3cf6974009fd26785b4938003d70f8450.zip CMake-e69958c3cf6974009fd26785b4938003d70f8450.tar.gz CMake-e69958c3cf6974009fd26785b4938003d70f8450.tar.bz2 |
BUG: fix bootstrapping, md5sum disabled in bootstrapping mode
Alex
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 8 |
1 files 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 <cmsys/RegularExpression.hxx> #include <cmsys/Directory.hxx> #include <cmsys/System.h> -#include <cmsys/MD5.h> // support for realpath call #ifndef _WIN32 @@ -51,6 +50,7 @@ # include <memory> // auto_ptr # include <fcntl.h> # include <cm_zlib.h> +# include <cmsys/MD5.h> #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, |