From aacd51034afef7918ceae38493b979e4010fa9c1 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 10 Feb 2006 10:30:20 -0500 Subject: ENH: fix test to work with in source build --- Tests/CustomCommandWorkingDirectory/CMakeLists.txt | 2 +- Tests/CustomCommandWorkingDirectory/working.c | 7 ------- Tests/CustomCommandWorkingDirectory/working.c.in | 7 +++++++ 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 Tests/CustomCommandWorkingDirectory/working.c create mode 100644 Tests/CustomCommandWorkingDirectory/working.c.in diff --git a/Tests/CustomCommandWorkingDirectory/CMakeLists.txt b/Tests/CustomCommandWorkingDirectory/CMakeLists.txt index 48437ec..4ddc87a 100644 --- a/Tests/CustomCommandWorkingDirectory/CMakeLists.txt +++ b/Tests/CustomCommandWorkingDirectory/CMakeLists.txt @@ -2,7 +2,7 @@ PROJECT(TestWorkingDir) ADD_CUSTOM_COMMAND( OUTPUT "${TestWorkingDir_BINARY_DIR}/working.c" - COMMAND "${CMAKE_COMMAND}" -E copy ./working.c "${TestWorkingDir_BINARY_DIR}/working.c" + COMMAND "${CMAKE_COMMAND}" -E copy ./working.c.in "${TestWorkingDir_BINARY_DIR}/working.c" WORKING_DIRECTORY "${TestWorkingDir_SOURCE_DIR}" COMMENT "custom command" ) diff --git a/Tests/CustomCommandWorkingDirectory/working.c b/Tests/CustomCommandWorkingDirectory/working.c deleted file mode 100644 index cf75bd1..0000000 --- a/Tests/CustomCommandWorkingDirectory/working.c +++ /dev/null @@ -1,7 +0,0 @@ -int customTarget(); - -int main() -{ - return customTarget(); -} - diff --git a/Tests/CustomCommandWorkingDirectory/working.c.in b/Tests/CustomCommandWorkingDirectory/working.c.in new file mode 100644 index 0000000..cf75bd1 --- /dev/null +++ b/Tests/CustomCommandWorkingDirectory/working.c.in @@ -0,0 +1,7 @@ +int customTarget(); + +int main() +{ + return customTarget(); +} + -- cgit v0.12