diff options
author | Brad King <brad.king@kitware.com> | 2021-10-27 16:58:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-27 16:58:02 (GMT) |
commit | efc6c23a47e456b066089ed6f8fd11a1ca4396d3 (patch) | |
tree | db943cd15d492038d8286484e857c1e77a148be7 /Source/cmcmd.cxx | |
parent | af6414c6c5e9767f0f997523af8fe1e5a71f6093 (diff) | |
download | CMake-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/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index f742ace..265c1fd 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -1588,7 +1588,11 @@ int cmcmd::HashSumFile(std::vector<std::string> const& args, std::cerr << "Error: " << filename << " is a directory" << std::endl; retval++; } else { - std::string value = cmSystemTools::ComputeFileHash(filename, algo); + std::string value +#ifndef CMAKE_BOOTSTRAP + = cmSystemTools::ComputeFileHash(filename, algo) +#endif + ; if (value.empty()) { // To mimic "md5sum/shasum" behavior in a shell: std::cerr << filename << ": No such file or directory" << std::endl; |