summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-06 19:16:12 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-06 19:16:12 (GMT)
commitb9850a614e62e5efbfcb520286f87f60002c09d1 (patch)
tree7ddd881c8404ff44883b802669f2dc100ba91d3f /Tests/CMakeTests
parent80533948b287cd26ec27cdfc29e76aad1ad38186 (diff)
downloadCMake-b9850a614e62e5efbfcb520286f87f60002c09d1.zip
CMake-b9850a614e62e5efbfcb520286f87f60002c09d1.tar.gz
CMake-b9850a614e62e5efbfcb520286f87f60002c09d1.tar.bz2
Log implicit link information parsing actions
This commit teaches the CMAKE_PARSE_IMPLICIT_LINK_INFO function to log its actions. We store the log in CMakeFiles/CMakeOutput.log at the top of the project build tree. This will make diagnosis of implicit link information parsing problems easier.
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r--Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in b/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in
index a549135..eba98a2 100644
--- a/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in
+++ b/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in
@@ -339,7 +339,7 @@ list(APPEND platforms msys_g77)
# Test parsing for all above examples.
foreach(p IN LISTS platforms)
- cmake_parse_implicit_link_info("${${p}_text}" libs dirs)
+ cmake_parse_implicit_link_info("${${p}_text}" libs dirs log)
foreach(v libs dirs)
if(NOT "${${v}}" STREQUAL "${${p}_${v}}")
@@ -349,6 +349,8 @@ foreach(p IN LISTS platforms)
" [${${p}_${v}}]\n"
"but got\n"
" [${${v}}]\n"
+ "Parse log was:\n"
+ "${log}"
)
endif()
endforeach()