diff options
author | Brad King <brad.king@kitware.com> | 2008-03-24 14:56:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-24 14:56:26 (GMT) |
commit | 1655dce2a58c6629ae4455d369c34a8b40924b22 (patch) | |
tree | 1e1d5af8c0b94609667570e4f96cb17ed67d570f /Source/cmCMakePolicyCommand.cxx | |
parent | a24ff4e453701b927959555ce7dab895870e6ae8 (diff) | |
download | CMake-1655dce2a58c6629ae4455d369c34a8b40924b22.zip CMake-1655dce2a58c6629ae4455d369c34a8b40924b22.tar.gz CMake-1655dce2a58c6629ae4455d369c34a8b40924b22.tar.bz2 |
ENH: Cleanup policy version interface presented to user.
- In cmake_minimum_required do not set policy version if current
CMake is too old
- In cmPolicies::ApplyPolicyVersion report error if version is too
new or cannot be parsed
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; } |