Browse Source

Merge topic 'install-DESTINATION-regression' into release-3.31

92e63421cb install: Restore treatment of DESTINATION as a single-valued keyword

Acked-by: Kitware Robot <[email protected]>
Acked-by: buildbot <[email protected]>
Merge-request: !10088
Brad King 10 months ago
parent
commit
6622ae651f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/cmInstallCommandArguments.cxx

+ 3 - 3
Source/cmInstallCommandArguments.cxx

@@ -37,7 +37,7 @@ cmInstallCommandArguments::cmInstallCommandArguments(
     case cmPolicies::OLD:
       normalizeDest = [this](cm::string_view arg) -> ArgumentParser::Continue {
         this->Destination = std::string(arg.begin(), arg.end());
-        return ArgumentParser::Continue::Yes;
+        return ArgumentParser::Continue::No;
       };
       break;
     case cmPolicies::WARN:
@@ -52,7 +52,7 @@ cmInstallCommandArguments::cmInstallCommandArguments(
             MessageType::AUTHOR_WARNING,
             cmPolicies::GetPolicyWarning(cmPolicies::CMP0177));
         }
-        return ArgumentParser::Continue::Yes;
+        return ArgumentParser::Continue::No;
       };
       break;
     case cmPolicies::NEW:
@@ -63,7 +63,7 @@ cmInstallCommandArguments::cmInstallCommandArguments(
           this->Destination =
             cmStrCat("$<PATH:CMAKE_PATH,NORMALIZE,", arg, '>');
         }
-        return ArgumentParser::Continue::Yes;
+        return ArgumentParser::Continue::No;
       };
       break;
     case cmPolicies::REQUIRED_ALWAYS: