diff options
Diffstat (limited to 'Source/cmCMakePolicyCommand.cxx')
-rw-r--r-- | Source/cmCMakePolicyCommand.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmCMakePolicyCommand.cxx b/Source/cmCMakePolicyCommand.cxx index f29938d..d6f1b3e 100644 --- a/Source/cmCMakePolicyCommand.cxx +++ b/Source/cmCMakePolicyCommand.cxx @@ -117,13 +117,6 @@ cmCMakePolicyCommand::HandleVersionMode(std::vector<std::string> const& args) this->SetError("VERSION given too many arguments"); return false; } - if(!this->Makefile->SetPolicyVersion(args[1].c_str())) - { - cmOStringStream e; - e << "VERSION given invalid value \"" << args[1] << "\". " - << "A numeric major.minor[.patch] must be given."; - this->SetError(e.str().c_str()); - return false; - } + this->Makefile->SetPolicyVersion(args[1].c_str()); return true; } |