summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-07-25 16:38:17 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-07-25 16:38:17 (GMT)
commit2433bf45172df45cd3dd4c6e2a5f47f288515ad6 (patch)
tree54cd2e03117e699f7dd0ba260c31aee10d33e316 /Tests
parentb379666b395622384e95d4eb39c59da6d40cd398 (diff)
downloadCMake-2433bf45172df45cd3dd4c6e2a5f47f288515ad6.zip
CMake-2433bf45172df45cd3dd4c6e2a5f47f288515ad6.tar.gz
CMake-2433bf45172df45cd3dd4c6e2a5f47f288515ad6.tar.bz2
ENH: trying a slight change
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LoadCommand/CMakeCommands/cmTestCommand.c6
-rw-r--r--Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/Tests/LoadCommand/CMakeCommands/cmTestCommand.c b/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
index 9f0627d..09f0c5a 100644
--- a/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
+++ b/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
@@ -118,12 +118,12 @@ static int CCONV InitialPass(void *inf, void *mf, int argc, char *argv[])
info->CAPI->DestroySourceFile(source_file);
- srcs = argv[2];
- info->CAPI->AddExecutable(mf,"LoadedCommand",1, &srcs, 0);
-
/* remove an old file if it is there */
info->CAPI->RemoveFile(argv[2]);
+ srcs = argv[2];
+ info->CAPI->AddExecutable(mf,"LoadedCommand",1, &srcs, 0);
+
/* add customs commands to generate the source file */
ccArgs[0] = "-E";
ccArgs[1] = "copy";
diff --git a/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c b/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
index 9f0627d..09f0c5a 100644
--- a/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
+++ b/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
@@ -118,12 +118,12 @@ static int CCONV InitialPass(void *inf, void *mf, int argc, char *argv[])
info->CAPI->DestroySourceFile(source_file);
- srcs = argv[2];
- info->CAPI->AddExecutable(mf,"LoadedCommand",1, &srcs, 0);
-
/* remove an old file if it is there */
info->CAPI->RemoveFile(argv[2]);
+ srcs = argv[2];
+ info->CAPI->AddExecutable(mf,"LoadedCommand",1, &srcs, 0);
+
/* add customs commands to generate the source file */
ccArgs[0] = "-E";
ccArgs[1] = "copy";