summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-09-10 19:41:44 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-26 17:27:55 (GMT)
commit9d1a1bc495be41b035f61f9b707df8006da54160 (patch)
treea1b41bb5a94b7ca5c8fdae2a1258581c59a62eb6 /Source/cmCommands.cxx
parentdcc117b9446cfc3d6c8bf191545aac8d1519abca (diff)
downloadCMake-9d1a1bc495be41b035f61f9b707df8006da54160.zip
CMake-9d1a1bc495be41b035f61f9b707df8006da54160.tar.gz
CMake-9d1a1bc495be41b035f61f9b707df8006da54160.tar.bz2
cmTarget*: Port away from cmCommand
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r--Source/cmCommands.cxx27
1 files changed, 11 insertions, 16 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index 88d17f1..b1f7db7 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -246,26 +246,22 @@ void GetProjectCommands(cmState* state)
state->AddBuiltinCommand("set_tests_properties",
cmSetTestsPropertiesCommand);
state->AddBuiltinCommand("subdirs", cmSubdirCommand);
- state->AddBuiltinCommand(
- "target_compile_definitions",
- cm::make_unique<cmTargetCompileDefinitionsCommand>());
+ state->AddBuiltinCommand("target_compile_definitions",
+ cmTargetCompileDefinitionsCommand);
state->AddBuiltinCommand("target_compile_features",
- cm::make_unique<cmTargetCompileFeaturesCommand>());
+ cmTargetCompileFeaturesCommand);
state->AddBuiltinCommand("target_compile_options",
- cm::make_unique<cmTargetCompileOptionsCommand>());
- state->AddBuiltinCommand(
- "target_include_directories",
- cm::make_unique<cmTargetIncludeDirectoriesCommand>());
+ cmTargetCompileOptionsCommand);
+ state->AddBuiltinCommand("target_include_directories",
+ cmTargetIncludeDirectoriesCommand);
state->AddBuiltinCommand("target_link_libraries",
cmTargetLinkLibrariesCommand);
- state->AddBuiltinCommand("target_sources",
- cm::make_unique<cmTargetSourcesCommand>());
+ state->AddBuiltinCommand("target_sources", cmTargetSourcesCommand);
state->AddBuiltinCommand("try_compile",
cm::make_unique<cmTryCompileCommand>());
state->AddBuiltinCommand("try_run", cm::make_unique<cmTryRunCommand>());
- state->AddBuiltinCommand(
- "target_precompile_headers",
- cm::make_unique<cmTargetPrecompileHeadersCommand>());
+ state->AddBuiltinCommand("target_precompile_headers",
+ cmTargetPrecompileHeadersCommand);
#if !defined(CMAKE_BOOTSTRAP)
state->AddBuiltinCommand("add_compile_definitions",
@@ -280,10 +276,9 @@ void GetProjectCommands(cmState* state)
state->AddBuiltinCommand("install_programs", cmInstallProgramsCommand);
state->AddBuiltinCommand("add_link_options", cmAddLinkOptionsCommand);
state->AddBuiltinCommand("link_libraries", cmLinkLibrariesCommand);
- state->AddBuiltinCommand("target_link_options",
- cm::make_unique<cmTargetLinkOptionsCommand>());
+ state->AddBuiltinCommand("target_link_options", cmTargetLinkOptionsCommand);
state->AddBuiltinCommand("target_link_directories",
- cm::make_unique<cmTargetLinkDirectoriesCommand>());
+ cmTargetLinkDirectoriesCommand);
state->AddBuiltinCommand("load_cache", cmLoadCacheCommand);
state->AddBuiltinCommand("qt_wrap_cpp", cmQTWrapCPPCommand);
state->AddBuiltinCommand("qt_wrap_ui", cmQTWrapUICommand);