Browse Source

More verbose BuildDepends test output

We teach BuildDepends to always print the output from each try_compile.
This may make debugging easier.
Brad King 16 years ago
parent
commit
aaabb2fdc2
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Tests/BuildDepends/CMakeLists.txt

+ 4 - 2
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}" )