summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-27 16:58:02 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-27 16:58:02 (GMT)
commitefc6c23a47e456b066089ed6f8fd11a1ca4396d3 (patch)
treedb943cd15d492038d8286484e857c1e77a148be7 /Source/cmSystemTools.h
parentaf6414c6c5e9767f0f997523af8fe1e5a71f6093 (diff)
downloadCMake-efc6c23a47e456b066089ed6f8fd11a1ca4396d3.zip
CMake-efc6c23a47e456b066089ed6f8fd11a1ca4396d3.tar.gz
CMake-efc6c23a47e456b066089ed6f8fd11a1ca4396d3.tar.bz2
bootstrap: Do not declare cmSystemTools functions that are not implemented
Convert runtime error messages into compile-time errors.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 715724c..19dabe8 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -179,6 +179,7 @@ public:
static void MoveFileIfDifferent(const std::string& source,
const std::string& destination);
+#ifndef CMAKE_BOOTSTRAP
//! Compute the hash of a file
static std::string ComputeFileHash(const std::string& source,
cmCryptoHash::Algo algo);
@@ -186,8 +187,11 @@ public:
/** Compute the md5sum of a string. */
static std::string ComputeStringMD5(const std::string& input);
+# ifdef _WIN32
//! Get the SHA thumbprint for a certificate file
static std::string ComputeCertificateThumbprint(const std::string& source);
+# endif
+#endif
/**
* Run a single executable command