Merge topic 'fix-out-of-date-CTestTestMemcheck'

84a42304 Tests: Prevent unnecessary rebuilds in CTestTestMemcheck
This commit is contained in:
Brad King 2014-03-20 09:22:14 -04:00 committed by CMake Topic Stage
commit fb60cf46b6
1 changed files with 6 additions and 1 deletions

View File

@ -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")