summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-20 13:22:14 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-03-20 13:22:14 (GMT)
commitfb60cf46b6a7bcd1545cfb6f2e41ab3f72e7df55 (patch)
tree165efc24176e5605fcd73ca5acb4030f44ee1755 /Tests
parent86b003c3c682c3d3ec42d73a183c695f04d0ddb2 (diff)
parent84a423040686fb5855cbe65d4aa4e209dc4ca870 (diff)
downloadCMake-fb60cf46b6a7bcd1545cfb6f2e41ab3f72e7df55.zip
CMake-fb60cf46b6a7bcd1545cfb6f2e41ab3f72e7df55.tar.gz
CMake-fb60cf46b6a7bcd1545cfb6f2e41ab3f72e7df55.tar.bz2
Merge topic 'fix-out-of-date-CTestTestMemcheck'
84a42304 Tests: Prevent unnecessary rebuilds in CTestTestMemcheck
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt b/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt
index c5aa2cd..47d6a24 100644
--- a/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt
+++ b/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt
@@ -1,7 +1,12 @@
# A dummy checker implementation that does not write the requested output file
# so it triggers an error for every checker.
-file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/ret0.c" "int main(){return 0;}\n")
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/ret0.c.in" "int main(){return 0;}\n")
+
+configure_file(
+ "${CMAKE_CURRENT_BINARY_DIR}/ret0.c.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/ret0.c"
+ )
foreach(_pseudo IN ITEMS valgrind purify BC)
add_executable(pseudonl_${_pseudo} "${CMAKE_CURRENT_BINARY_DIR}/ret0.c")