diff --git a/Tests/LoadCommand/CMakeCommands/cmTestCommand.c b/Tests/LoadCommand/CMakeCommands/cmTestCommand.c index c5ee6117c..b1431cfc5 100644 --- a/Tests/LoadCommand/CMakeCommands/cmTestCommand.c +++ b/Tests/LoadCommand/CMakeCommands/cmTestCommand.c @@ -128,7 +128,7 @@ static int CCONV InitialPass(void *inf, void *mf, int argc, char *argv[]) ccArgs[3] = argv[1]; ccDep[0] = ccArgs[2]; ccOut[0] = ccArgs[3]; - info->CAPI->AddCustomCommand(mf, "LoadedCommand.cxx", + info->CAPI->AddCustomCommand(mf, "LoadedCommand.cxx.in", file, 4, ccArgs, 1, ccDep, diff --git a/Tests/LoadCommand/CMakeLists.txt b/Tests/LoadCommand/CMakeLists.txt index 23a52a844..30463ef8a 100644 --- a/Tests/LoadCommand/CMakeLists.txt +++ b/Tests/LoadCommand/CMakeLists.txt @@ -52,8 +52,8 @@ IF (COMPILE_OK) # if the command loaded, execute the command IF (COMMAND CMAKE_TEST_COMMAND) CMAKE_TEST_COMMAND( - "${LoadedCommand_SOURCE_DIR}/LoadedCommand.cxx" - "${LoadedCommand_BINARY_DIR}/LoadedCommand2.cxx" + "${LoadedCommand_SOURCE_DIR}/LoadedCommand.cxx.in" + "${LoadedCommand_BINARY_DIR}/LoadedCommand2.cxx.in" "${LoadedCommand_BINARY_DIR}/LoadedCommand3.cxx" ) ENDIF (COMMAND CMAKE_TEST_COMMAND) diff --git a/Tests/LoadCommand/LoadedCommand.cxx b/Tests/LoadCommand/LoadedCommand.cxx.in similarity index 100% rename from Tests/LoadCommand/LoadedCommand.cxx rename to Tests/LoadCommand/LoadedCommand.cxx.in diff --git a/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c b/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c index c5ee6117c..b1431cfc5 100644 --- a/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c +++ b/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c @@ -128,7 +128,7 @@ static int CCONV InitialPass(void *inf, void *mf, int argc, char *argv[]) ccArgs[3] = argv[1]; ccDep[0] = ccArgs[2]; ccOut[0] = ccArgs[3]; - info->CAPI->AddCustomCommand(mf, "LoadedCommand.cxx", + info->CAPI->AddCustomCommand(mf, "LoadedCommand.cxx.in", file, 4, ccArgs, 1, ccDep, diff --git a/Tests/LoadCommandOneConfig/CMakeLists.txt b/Tests/LoadCommandOneConfig/CMakeLists.txt index 23a52a844..30463ef8a 100644 --- a/Tests/LoadCommandOneConfig/CMakeLists.txt +++ b/Tests/LoadCommandOneConfig/CMakeLists.txt @@ -52,8 +52,8 @@ IF (COMPILE_OK) # if the command loaded, execute the command IF (COMMAND CMAKE_TEST_COMMAND) CMAKE_TEST_COMMAND( - "${LoadedCommand_SOURCE_DIR}/LoadedCommand.cxx" - "${LoadedCommand_BINARY_DIR}/LoadedCommand2.cxx" + "${LoadedCommand_SOURCE_DIR}/LoadedCommand.cxx.in" + "${LoadedCommand_BINARY_DIR}/LoadedCommand2.cxx.in" "${LoadedCommand_BINARY_DIR}/LoadedCommand3.cxx" ) ENDIF (COMMAND CMAKE_TEST_COMMAND) diff --git a/Tests/LoadCommandOneConfig/LoadedCommand.cxx b/Tests/LoadCommandOneConfig/LoadedCommand.cxx.in similarity index 100% rename from Tests/LoadCommandOneConfig/LoadedCommand.cxx rename to Tests/LoadCommandOneConfig/LoadedCommand.cxx.in