summaryrefslogtreecommitdiffstats
path: root/Tests/CustomCommand
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-18 13:18:09 (GMT)
committerBrad King <brad.king@kitware.com>2007-05-18 13:18:09 (GMT)
commitea66edaf5e8af4a3bd0b9809d0a7b26df8ff4196 (patch)
tree64dc8ffa5c94ef885b229d8434c8d2434ef79509 /Tests/CustomCommand
parent07fe611fc6607dced063858aa850cdb1ef59130c (diff)
downloadCMake-ea66edaf5e8af4a3bd0b9809d0a7b26df8ff4196.zip
CMake-ea66edaf5e8af4a3bd0b9809d0a7b26df8ff4196.tar.gz
CMake-ea66edaf5e8af4a3bd0b9809d0a7b26df8ff4196.tar.bz2
ENH: Added quick means to turn on verbose output for debugging this test.
Diffstat (limited to 'Tests/CustomCommand')
-rw-r--r--Tests/CustomCommand/CMakeLists.txt2
-rw-r--r--Tests/CustomCommand/check_command_line.c.in4
2 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt
index a1c00ce..53b27c5 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 72b34c7..e0e0d21 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)