summaryrefslogtreecommitdiffstats
path: root/Tests/TryCompile
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-01-31 19:00:44 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-01-31 19:00:44 (GMT)
commitd48bf5c3b6b6d1f26bf2372088e64d4dc4197677 (patch)
tree1278c2d4188040f799ea208490be226847bd8f82 /Tests/TryCompile
parentb0cd96983beabf18287cb216bc3cff8f09694529 (diff)
downloadCMake-d48bf5c3b6b6d1f26bf2372088e64d4dc4197677.zip
CMake-d48bf5c3b6b6d1f26bf2372088e64d4dc4197677.tar.gz
CMake-d48bf5c3b6b6d1f26bf2372088e64d4dc4197677.tar.bz2
ENH: add more output when test fails
Diffstat (limited to 'Tests/TryCompile')
-rw-r--r--Tests/TryCompile/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/TryCompile/CMakeLists.txt b/Tests/TryCompile/CMakeLists.txt
index f2c6bc4..a9a0883 100644
--- a/Tests/TryCompile/CMakeLists.txt
+++ b/Tests/TryCompile/CMakeLists.txt
@@ -6,7 +6,7 @@ TRY_COMPILE(SHOULD_PASS
${TryCompile_SOURCE_DIR}/pass.c
OUTPUT_VARIABLE TRY_OUT)
IF(NOT SHOULD_PASS)
- MESSAGE(SEND_ERROR "should pass failed ")
+ MESSAGE(SEND_ERROR "should pass failed ${TRY_OUT}")
ENDIF(NOT SHOULD_PASS)
# try to compile a file that should not compile
@@ -15,7 +15,7 @@ TRY_COMPILE(SHOULD_FAIL
${TryCompile_SOURCE_DIR}/fail.c
OUTPUT_VARIABLE TRY_OUT)
IF(SHOULD_FAIL)
- MESSAGE(SEND_ERROR "Should fail passed")
+ MESSAGE(SEND_ERROR "Should fail passed ${TRY_OUT}")
ENDIF(SHOULD_FAIL)
# try to compile a file that should compile
@@ -24,7 +24,7 @@ TRY_COMPILE(SHOULD_PASS
${TryCompile_SOURCE_DIR}/pass.c
OUTPUT_VARIABLE TRY_OUT)
IF(NOT SHOULD_PASS)
- MESSAGE(SEND_ERROR "should pass failed ")
+ MESSAGE(SEND_ERROR "should pass failed ${TRY_OUT}")
ENDIF(NOT SHOULD_PASS)
# try to compile a file that should not compile
@@ -33,7 +33,7 @@ TRY_COMPILE(SHOULD_FAIL
${TryCompile_SOURCE_DIR}/fail.c
OUTPUT_VARIABLE TRY_OUT)
IF(SHOULD_FAIL)
- MESSAGE(SEND_ERROR "Should fail passed")
+ MESSAGE(SEND_ERROR "Should fail passed ${TRY_OUT}")
ENDIF(SHOULD_FAIL)
IF(NOT SHOULD_FAIL)