diff options
author | Brad King <brad.king@kitware.com> | 2013-10-18 16:41:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-22 13:09:52 (GMT) |
commit | aa76518f8bfd821f000d1779066eb7614cdd079b (patch) | |
tree | 4005fa79df546cbf0de9bfb2f0610b27a9b65c3d /Source/cmLoadCommandCommand.cxx | |
parent | 97268cf5b7626febb06d04c2201ace397a4863fd (diff) | |
download | CMake-aa76518f8bfd821f000d1779066eb7614cdd079b.zip CMake-aa76518f8bfd821f000d1779066eb7614cdd079b.tar.gz CMake-aa76518f8bfd821f000d1779066eb7614cdd079b.tar.bz2 |
Add policy CMP0031 to disallow load_command
Diffstat (limited to 'Source/cmLoadCommandCommand.cxx')
-rw-r--r-- | Source/cmLoadCommandCommand.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index 84dd299..21ee0fe 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -189,6 +189,9 @@ cmLoadedCommand::~cmLoadedCommand() bool cmLoadCommandCommand ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) { + if(this->Disallowed(cmPolicies::CMP0031, + "The load_command command should not be called; see CMP0031.")) + { return true; } if(args.size() < 1 ) { return true; |