@@ -56,6 +56,8 @@ build_script:
5656
5757 Write-Host "=== Starting CMake configuration ==="
5858
59+ $ErrorActionPreference = "Continue"
60+
5961 cmake `
6062 -G $env:msvc `
6163 $env:cpp11 `
@@ -66,19 +68,23 @@ build_script:
6668 -D CMAKE_PREFIX_PATH="$env:boost_prefix;$env:APPVEYOR_BUILD_FOLDER\zlib-1.3.1\prefix" `
6769 -D CMAKE_INSTALL_PREFIX="$env:APPVEYOR_BUILD_FOLDER\prefix" `
6870 -D CMAKE_CXX_FLAGS="/D_VARIADIC_MAX=10 /EHsc /DBOOST_ALL_DYN_LINK" `
69- --debug-find `
70- ..
71+ .. 2>&1 | Tee-Object -Variable cmakeOutput
72+
73+ Write-Host "=== Full CMake output: ==="
74+ Write-Host $cmakeOutput
7175
7276 if ($LastExitCode -ne 0) {
7377 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"
78+ Write-Host "=== Checking if CMakeLists.txt exists ==="
79+ if (Test-Path "..\CMakeLists.txt") {
80+ Write-Host "CMakeLists.txt found"
81+ } else {
82+ Write-Host "CMakeLists.txt NOT found!"
8183 }
84+ Write-Host "=== Current directory: ==="
85+ Get-Location
86+ Write-Host "=== Directory contents: ==="
87+ dir
8288 exit $LastExitCode
8389 }
8490
0 commit comments