Browse Source

ENH: When test fails, write out the output

Andy Cedilnik 21 năm trước cách đây
mục cha
commit
b1a1526e14
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Modules/CheckIncludeFiles.cmake

+ 1 - 1
Modules/CheckIncludeFiles.cmake

@@ -39,7 +39,7 @@ MACRO(CHECK_INCLUDE_FILES INCLUDE VARIABLE)
       FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeError.log 
         "Determining if files ${INCLUDE} "
         "exist failed with the following output:\n"
-        "${OUTPUT}\n\n")
+        "${OUTPUT}\nSource:\n${CHECK_INCLUDE_FILES_CONTENT}\n")
     ENDIF(${VARIABLE})
   ENDIF("${VARIABLE}" MATCHES "^${VARIABLE}$")
 ENDMACRO(CHECK_INCLUDE_FILES)