From ea66edaf5e8af4a3bd0b9809d0a7b26df8ff4196 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 18 May 2007 09:18:09 -0400 Subject: [PATCH] ENH: Added quick means to turn on verbose output for debugging this test. --- Tests/CustomCommand/CMakeLists.txt | 2 ++ Tests/CustomCommand/check_command_line.c.in | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt index a1c00ce9c9..53b27c56e0 100644 --- a/Tests/CustomCommand/CMakeLists.txt +++ b/Tests/CustomCommand/CMakeLists.txt @@ -327,6 +327,8 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/check_command_line.c.in @ONLY IMMEDIATE) ADD_EXECUTABLE(check_command_line ${CMAKE_CURRENT_BINARY_DIR}/check_command_line.c) +# SET_TARGET_PROPERTIES(check_command_line PROPERTIES +# COMPILE_FLAGS -DCHECK_COMMAND_LINE_VERBOSE) ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/command_line_check COMMAND ${CMAKE_COMMAND} -DMARK_FILE=${CMAKE_CURRENT_BINARY_DIR}/check_mark.txt diff --git a/Tests/CustomCommand/check_command_line.c.in b/Tests/CustomCommand/check_command_line.c.in index 72b34c7f03..e0e0d21423 100644 --- a/Tests/CustomCommand/check_command_line.c.in +++ b/Tests/CustomCommand/check_command_line.c.in @@ -21,7 +21,9 @@ int main(int argc, const char* argv[]) } else { - /*printf("[%s]\n", *a);*/ +#if defined(CHECK_COMMAND_LINE_VERBOSE) + printf("[%s]\n", *a); +#endif } } if(*a || *e)