diff options
author | Brad King <brad.king@kitware.com> | 2007-05-01 18:12:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-01 18:12:56 (GMT) |
commit | 87853ed828e8c013ca9ac860c1bbb46198c6d78b (patch) | |
tree | 9a7232f0c8e0a085135f405f0a3bf41e1a1ca156 /Tests/CustomCommand/check_mark.cmake | |
parent | c51c245efa2cf6608e97862edbf7c1ba038e0cf2 (diff) | |
download | CMake-87853ed828e8c013ca9ac860c1bbb46198c6d78b.zip CMake-87853ed828e8c013ca9ac860c1bbb46198c6d78b.tar.gz CMake-87853ed828e8c013ca9ac860c1bbb46198c6d78b.tar.bz2 |
ENH: Added test to make sure custom commands are not built more than once in a single build. This tests for a bug introduced by one fix and fixed by another fix for bug#4377.
Diffstat (limited to 'Tests/CustomCommand/check_mark.cmake')
-rw-r--r-- | Tests/CustomCommand/check_mark.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CustomCommand/check_mark.cmake b/Tests/CustomCommand/check_mark.cmake new file mode 100644 index 0000000..8b0551f --- /dev/null +++ b/Tests/CustomCommand/check_mark.cmake @@ -0,0 +1,5 @@ +IF(EXISTS "${MARK_FILE}") + MESSAGE(FATAL_ERROR "Custom command run more than once!") +ELSE(EXISTS "${MARK_FILE}") + FILE(WRITE "${MARK_FILE}" "check for running custom command twice\n") +ENDIF(EXISTS "${MARK_FILE}") |