diff options
author | Brad King <brad.king@kitware.com> | 2013-10-21 15:58:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-22 13:09:52 (GMT) |
commit | 3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c (patch) | |
tree | 2d0ca3ea70083bd9d7f19ffc4b2f246ad87ede17 /Source/cmVariableRequiresCommand.cxx | |
parent | 178b9af18674b23be97758236c676c9bd9398c40 (diff) | |
download | CMake-3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c.zip CMake-3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c.tar.gz CMake-3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c.tar.bz2 |
Add policy CMP0035 to disallow variable_requires
Diffstat (limited to 'Source/cmVariableRequiresCommand.cxx')
-rw-r--r-- | Source/cmVariableRequiresCommand.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmVariableRequiresCommand.cxx b/Source/cmVariableRequiresCommand.cxx index 747e9be..ddb4003 100644 --- a/Source/cmVariableRequiresCommand.cxx +++ b/Source/cmVariableRequiresCommand.cxx @@ -16,6 +16,9 @@ bool cmVariableRequiresCommand ::InitialPass(std::vector<std::string>const& args, cmExecutionStatus &) { + if(this->Disallowed(cmPolicies::CMP0035, + "The variable_requires command should not be called; see CMP0035.")) + { return true; } if(args.size() < 3 ) { this->SetError("called with incorrect number of arguments"); |