summaryrefslogtreecommitdiffstats
path: root/Source/cmBuildNameCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-21 17:12:18 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-22 13:09:53 (GMT)
commit6c9194488aa5d61774ffeb40f54149ce2255f00c (patch)
treefc1200e03d64e3a83893de34814d3c244cfb6d54 /Source/cmBuildNameCommand.cxx
parent3969bb23aafcdbd2174649e8eeb8f7b0e7ea6c4c (diff)
downloadCMake-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.cxx3
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");