summaryrefslogtreecommitdiff
path: root/Source/cmBuildNameCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-21 13:12:18 -0400
committerBrad King <brad.king@kitware.com>2013-10-22 09:09:53 -0400
commit6c9194488aa5d61774ffeb40f54149ce2255f00c (patch)
treefc1200e03d64e3a83893de34814d3c244cfb6d54 /Source/cmBuildNameCommand.cxx
parent3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c (diff)
downloadcmake-6c9194488aa5d61774ffeb40f54149ce2255f00c.tar.gz
Add policy CMP0036 to disallow build_name
Diffstat (limited to 'Source/cmBuildNameCommand.cxx')
-rw-r--r--Source/cmBuildNameCommand.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmBuildNameCommand.cxx b/Source/cmBuildNameCommand.cxx
index f95a79eda5..e3528e1363 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");