From 63bbf443d9058c7baae3ee198c51c8a4329d26a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Wed, 6 Sep 2023 18:22:37 +0200 Subject: [PATCH] Allow running bootstrap.ps1 from a different directory. --- bootstrap.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bootstrap.ps1 b/bootstrap.ps1 index f50820f..3b171dc 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -3,8 +3,12 @@ if (!$root) { $root = "." } -cmake -B build . | Out-Null -cmake --build build --config Release -- "-p:UseMultiToolTask=true" "-noLogo" "-p:EnforceProcessCountAcrossBuilds=true" "-clp:ErrorsOnly;Verbosity=minimal" +cmake -B build $root | Out-Null +cmake --build $root/build --config Release -- ` + "-p:UseMultiToolTask=true" ` + "-noLogo" ` + "-p:EnforceProcessCountAcrossBuilds=true" ` + "-clp:ErrorsOnly;Verbosity=minimal" if (! $?) { Write-Error "Build failed"