Browse Source

string(): Support hash functions in bootstrap

cmCryptoHash has been included in the bootstrap script since 596439b.
Add hash support to string() in bootstrap to allow FindPython to work.
Kyle Edwards 3 years ago
parent
commit
b6a6190877
1 changed files with 0 additions and 5 deletions
  1. 0 5
      Source/cmStringCommand.cxx

+ 0 - 5
Source/cmStringCommand.cxx

@@ -55,7 +55,6 @@ bool joinImpl(std::vector<std::string> const& args, std::string const& glue,
 bool HandleHashCommand(std::vector<std::string> const& args,
 bool HandleHashCommand(std::vector<std::string> const& args,
                        cmExecutionStatus& status)
                        cmExecutionStatus& status)
 {
 {
-#if !defined(CMAKE_BOOTSTRAP)
   if (args.size() != 3) {
   if (args.size() != 3) {
     status.SetError(
     status.SetError(
       cmStrCat(args[0], " requires an output variable and an input string"));
       cmStrCat(args[0], " requires an output variable and an input string"));
@@ -69,10 +68,6 @@ bool HandleHashCommand(std::vector<std::string> const& args,
     return true;
     return true;
   }
   }
   return false;
   return false;
-#else
-  status.SetError(cmStrCat(args[0], " not available during bootstrap"));
-  return false;
-#endif
 }
 }
 
 
 bool HandleToUpperLowerCommand(std::vector<std::string> const& args,
 bool HandleToUpperLowerCommand(std::vector<std::string> const& args,