diff options
author | Brad King <brad.king@kitware.com> | 2013-10-21 17:12:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-22 13:09:53 (GMT) |
commit | 6c9194488aa5d61774ffeb40f54149ce2255f00c (patch) | |
tree | fc1200e03d64e3a83893de34814d3c244cfb6d54 /Source/cmBuildNameCommand.cxx | |
parent | 3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c (diff) | |
download | CMake-6c9194488aa5d61774ffeb40f54149ce2255f00c.zip CMake-6c9194488aa5d61774ffeb40f54149ce2255f00c.tar.gz CMake-6c9194488aa5d61774ffeb40f54149ce2255f00c.tar.bz2 |
Add policy CMP0036 to disallow build_name
Diffstat (limited to 'Source/cmBuildNameCommand.cxx')
-rw-r--r-- | Source/cmBuildNameCommand.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmBuildNameCommand.cxx b/Source/cmBuildNameCommand.cxx index f95a79e..e3528e1 100644 --- a/Source/cmBuildNameCommand.cxx +++ b/Source/cmBuildNameCommand.cxx @@ -17,6 +17,9 @@ bool cmBuildNameCommand ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) { + if(this->Disallowed(cmPolicies::CMP0036, + "The build_name command should not be called; see CMP0036.")) + { return true; } if(args.size() < 1 ) { this->SetError("called with incorrect number of arguments"); |