Skip to content

Commit 2ee083d

Browse files
committed
Add debug
1 parent 596a2fb commit 2ee083d

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

appveyor.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,21 @@ build_script:
6666
-D CMAKE_PREFIX_PATH="$env:boost_prefix;$env:APPVEYOR_BUILD_FOLDER\zlib-1.3.1\prefix" `
6767
-D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\prefix" `
6868
-D CMAKE_CXX_FLAGS="/D_VARIADIC_MAX=10 /EHsc /DBOOST_ALL_DYN_LINK" `
69+
--debug-find `
6970
..
70-
if ($LastExitCode -ne 0) { exit $LastExitCode }
71+
72+
if ($LastExitCode -ne 0) {
73+
Write-Host "=== CMake configuration FAILED with exit code $LastExitCode ==="
74+
Write-Host "=== Dumping CMakeOutput.log ==="
75+
if (Test-Path "CMakeFiles/CMakeOutput.log") {
76+
Get-Content "CMakeFiles/CMakeOutput.log"
77+
}
78+
Write-Host "=== Dumping CMakeError.log ==="
79+
if (Test-Path "CMakeFiles/CMakeError.log") {
80+
Get-Content "CMakeFiles/CMakeError.log"
81+
}
82+
exit $LastExitCode
83+
}
7184
7285
cmake --build . --config Release
7386
if ($LastExitCode -ne 0) { exit $LastExitCode }

0 commit comments

Comments
 (0)