From 7ba6813c6745af9d60fd0807d04af218a5568eaf Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 23 Oct 2023 18:01:56 +0200 Subject: [PATCH] Update build-repo.ps1 --- Scripts/build-repo.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Scripts/build-repo.ps1 b/Scripts/build-repo.ps1 index 97d2b813..cc9b53a4 100755 --- a/Scripts/build-repo.ps1 +++ b/Scripts/build-repo.ps1 @@ -21,18 +21,21 @@ param([string]$path = "$PWD") function BuildInDir([string]$path) { $dirName = (Get-Item "$path").Name if (Test-Path "$path/CMakeLists.txt" -pathType leaf) { - "⏳ Building 📂$dirName by using CMake into 📂$dirName/_My_Build..." + "⏳ (1/4) Building 📂$dirName by using CMake into 📂$dirName/_My_Build..." if (-not(Test-Path "$path/_My_Build/" -pathType container)) { & mkdir "$path/_My_Build/" } Set-Location "$path/_My_Build/" + "⏳ (2/4) Executing 'cmake' to generate the Makefile..." & cmake .. if ($lastExitCode -ne "0") { throw "Executing 'cmake ..' has failed" } + "⏳ (3/4) Executing 'make -j4' to compile and link..." & make -j4 if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" } + "⏳ (4/4) Executing 'make test' to perform tests (optional)..." & make test if ($lastExitCode -ne "0") { throw "Executing 'make test' has failed" }