ENH: Added quick means to turn on verbose output for debugging this test.

This commit is contained in:
Brad King 2007-05-18 09:18:09 -04:00
parent 07fe611fc6
commit ea66edaf5e
2 changed files with 5 additions and 1 deletions

View File

@ -327,6 +327,8 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/check_command_line.c.in
@ONLY IMMEDIATE) @ONLY IMMEDIATE)
ADD_EXECUTABLE(check_command_line ADD_EXECUTABLE(check_command_line
${CMAKE_CURRENT_BINARY_DIR}/check_command_line.c) ${CMAKE_CURRENT_BINARY_DIR}/check_command_line.c)
# SET_TARGET_PROPERTIES(check_command_line PROPERTIES
# COMPILE_FLAGS -DCHECK_COMMAND_LINE_VERBOSE)
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/command_line_check OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/command_line_check
COMMAND ${CMAKE_COMMAND} -DMARK_FILE=${CMAKE_CURRENT_BINARY_DIR}/check_mark.txt COMMAND ${CMAKE_COMMAND} -DMARK_FILE=${CMAKE_CURRENT_BINARY_DIR}/check_mark.txt

View File

@ -21,7 +21,9 @@ int main(int argc, const char* argv[])
} }
else else
{ {
/*printf("[%s]\n", *a);*/ #if defined(CHECK_COMMAND_LINE_VERBOSE)
printf("[%s]\n", *a);
#endif
} }
} }
if(*a || *e) if(*a || *e)