Skip to content

Commit 1996e01

Browse files
bradkingkwrobot
authored andcommitted
Merge topic 'cmFileCommand-refactoring'
a7a5f37 cmFileCommand: Use cmSubcommandTable b66b746 Introduce cmSubcommandTable 2b78587 cmFileCommand: turn into free function 9703c65 cmFileCommand: put subcommands in unnamed namespace 64f987c cmFileCommand: port to cmExecutionStatus Acked-by: Kitware Robot <[email protected]> Merge-request: !3657
2 parents 1263b08 + a7a5f37 commit 1996e01

13 files changed

+552
-528
lines changed

Source/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,8 @@ set(SRCS
639639
cmStringReplaceHelper.cxx
640640
cmStringCommand.cxx
641641
cmStringCommand.h
642+
cmSubcommandTable.cxx
643+
cmSubcommandTable.h
642644
cmSubdirCommand.cxx
643645
cmSubdirCommand.h
644646
cmSubdirDependsCommand.cxx

Source/cmCommands.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void GetScriptingCommands(cmState* state)
128128
cm::make_unique<cmExecProgramCommand>());
129129
state->AddBuiltinCommand("execute_process",
130130
cm::make_unique<cmExecuteProcessCommand>());
131-
state->AddBuiltinCommand("file", cm::make_unique<cmFileCommand>());
131+
state->AddBuiltinCommand("file", cmFileCommand);
132132
state->AddBuiltinCommand("find_file", cm::make_unique<cmFindFileCommand>());
133133
state->AddBuiltinCommand("find_library",
134134
cm::make_unique<cmFindLibraryCommand>());

0 commit comments

Comments
 (0)