COMP: Cannot do MD5 from KWSys during CMake bootstrap.
This commit is contained in:
parent
1dec54489a
commit
f1c5b50cb7
|
@ -1131,6 +1131,7 @@ bool cmSystemTools::ComputeFileMD5(const char* source, char* md5out)
|
||||||
|
|
||||||
std::string cmSystemTools::ComputeStringMD5(const char* input)
|
std::string cmSystemTools::ComputeStringMD5(const char* input)
|
||||||
{
|
{
|
||||||
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
||||||
char md5out[32];
|
char md5out[32];
|
||||||
cmsysMD5* md5 = cmsysMD5_New();
|
cmsysMD5* md5 = cmsysMD5_New();
|
||||||
cmsysMD5_Initialize(md5);
|
cmsysMD5_Initialize(md5);
|
||||||
|
@ -1138,6 +1139,10 @@ std::string cmSystemTools::ComputeStringMD5(const char* input)
|
||||||
cmsysMD5_FinalizeHex(md5, md5out);
|
cmsysMD5_FinalizeHex(md5, md5out);
|
||||||
cmsysMD5_Delete(md5);
|
cmsysMD5_Delete(md5);
|
||||||
return std::string(md5out, 32);
|
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,
|
void cmSystemTools::Glob(const char *directory, const char *regexp,
|
||||||
|
|
Loading…
Reference in New Issue