Skip to content

Commit 243fb27

Browse files
authored
Merge pull request #874 from ygj6/build
fix cannot find boost error
2 parents 766afb9 + 746e983 commit 243fb27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/gha.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,11 @@ jobs:
294294
$CUR=(Get-Location).Path
295295
md build
296296
cd build
297-
cmake -A x64 -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" $CPP11 $BOOST "-DCMAKE_CXX_FLAGS=/D_VARIADIC_MAX=10 /EHsc /D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING" ..
297+
cmake -A x64 -DBOOST_ROOT="$env:BOOST_ROOT_1_72_0" -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" $CPP11 $BOOST "-DCMAKE_CXX_FLAGS=/D_VARIADIC_MAX=10 /EHsc /D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING" ..
298+
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
298299
cmake --build . --config Release
299300
$pathbak="$env:PATH"
300301
$env:PATH="C:\vcpkg\installed\x64-windows\bin;$CUR\build\Release;$pathbak"
301302
ctest -V
303+
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
302304
$env:PATH=$pathbak

0 commit comments

Comments
 (0)