summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-21 14:47:29 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-08-21 14:47:47 (GMT)
commitde2c73d84f767e8d80ed310151384554506ff49b (patch)
tree65b0e49d42d4dd8731adb976a6bdc8b9157f1a92 /Source/cmCommands.cxx
parent98972371e4a768c36d4169431392fe727dcac2ee (diff)
parentc55fb044a9cf20a449f9d5ebc5d88c6de279786d (diff)
downloadCMake-de2c73d84f767e8d80ed310151384554506ff49b.zip
CMake-de2c73d84f767e8d80ed310151384554506ff49b.tar.gz
CMake-de2c73d84f767e8d80ed310151384554506ff49b.tar.bz2
Merge topic 'free-disallowed'
c55fb044a9 cmBuildNameCommand: Implement as free function 86bf1eef75 cmState: Support free function disallowed commands Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3688
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r--Source/cmCommands.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index 8565e1c..fcbf35a 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -221,7 +221,7 @@ void GetScriptingCommands(cmState* state)
cm::make_unique<cmWriteFileCommand>());
state->AddDisallowedCommand(
- "build_name", cm::make_unique<cmBuildNameCommand>(), cmPolicies::CMP0036,
+ "build_name", cmBuildNameCommand, cmPolicies::CMP0036,
"The build_name command should not be called; see CMP0036.");
state->AddDisallowedCommand(
"use_mangled_mesa", cm::make_unique<cmUseMangledMesaCommand>(),