summaryrefslogtreecommitdiffstats
path: root/Tests/BuildDepends
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-22 13:35:58 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-22 13:35:58 (GMT)
commitaaabb2fdc223151c856bae4b2d7bafff529ec29a (patch)
treef3f5de69bf7b12d5811ccde2cad27b05376d1531 /Tests/BuildDepends
parent50759a9ed3f7be7763fbbd6b54a338607ab3a513 (diff)
downloadCMake-aaabb2fdc223151c856bae4b2d7bafff529ec29a.zip
CMake-aaabb2fdc223151c856bae4b2d7bafff529ec29a.tar.gz
CMake-aaabb2fdc223151c856bae4b2d7bafff529ec29a.tar.bz2
More verbose BuildDepends test output
We teach BuildDepends to always print the output from each try_compile. This may make debugging easier.
Diffstat (limited to 'Tests/BuildDepends')
-rw-r--r--Tests/BuildDepends/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/BuildDepends/CMakeLists.txt b/Tests/BuildDepends/CMakeLists.txt
index d8f8360..3eb9195 100644
--- a/Tests/BuildDepends/CMakeLists.txt
+++ b/Tests/BuildDepends/CMakeLists.txt
@@ -63,8 +63,9 @@ if(HELP_XCODE)
OUTPUT_VARIABLE OUTPUT)
endif(HELP_XCODE)
+message("Output from first build:\n${OUTPUT}")
if(NOT RESULT)
- message(SEND_ERROR "Could not build test project: ${OUTPUT}")
+ message(SEND_ERROR "Could not build test project (1)!")
endif(NOT RESULT)
set(bar ${BuildDepends_BINARY_DIR}/Project/bar${CMAKE_EXECUTABLE_SUFFIX})
@@ -146,8 +147,9 @@ if(HELP_XCODE)
OUTPUT_VARIABLE OUTPUT)
endif(HELP_XCODE)
+message("Output from second build:\n${OUTPUT}")
if(NOT RESULT)
- message(SEND_ERROR "Could not build test project: ${OUTPUT}")
+ message(SEND_ERROR "Could not build test project (2)!")
endif(NOT RESULT)
if(EXISTS
"${BuildDepends_BINARY_DIR}/Project/Debug/bar${CMAKE_EXECUTABLE_SUFFIX}" )