summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.cxx
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-08-21 18:56:02 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-26 15:48:46 (GMT)
commitae51aa32f0589e4f5fc9a251a5be534cba631876 (patch)
tree1348b37bc3dfadc4a38baa1d85ff838c14d16e0c /Source/cmCommands.cxx
parent185fa2c4f3e21542dd42bfb396fc8520d996772a (diff)
downloadCMake-ae51aa32f0589e4f5fc9a251a5be534cba631876.zip
CMake-ae51aa32f0589e4f5fc9a251a5be534cba631876.tar.gz
CMake-ae51aa32f0589e4f5fc9a251a5be534cba631876.tar.bz2
cmCommand refactor: cmVariableRequiresCommand
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r--Source/cmCommands.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index ad14c6b..0285525 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -326,8 +326,7 @@ void GetProjectCommands(cmState* state)
"utility_source", cmUtilitySourceCommand, cmPolicies::CMP0034,
"The utility_source command should not be called; see CMP0034.");
state->AddDisallowedCommand(
- "variable_requires", cm::make_unique<cmVariableRequiresCommand>(),
- cmPolicies::CMP0035,
+ "variable_requires", cmVariableRequiresCommand, cmPolicies::CMP0035,
"The variable_requires command should not be called; see CMP0035.");
#endif
}