From d3b69f729d480b033091a20e86519bc28f725da6 Mon Sep 17 00:00:00 2001 From: Vicente Eduardo Ferrer Garcia Date: Thu, 10 Aug 2023 19:24:02 +0200 Subject: [PATCH] Solve issue in cmake windows i env script. --- tools/metacall-build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/metacall-build.ps1 b/tools/metacall-build.ps1 index fcfe21cc2..9491b76d8 100755 --- a/tools/metacall-build.ps1 +++ b/tools/metacall-build.ps1 @@ -41,7 +41,7 @@ function Sub-Build { # Build the project echo "Building MetaCall..." - cmake --build . -j$((Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors) --config $BUILD_TYPE + cmake --build . "-j$((Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors)" --config $BUILD_TYPE if (-not $?) { $RecentExitCode = $LASTEXITCODE @@ -54,7 +54,7 @@ function Sub-Build { # Tests (coverage needs to run the tests) if (($BUILD_TESTS -eq 1) -or ($BUILD_COVERAGE -eq 1)) { echo "Running the tests..." - ctest -j$((Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors) --timeout 5400 --output-on-failure -C $BUILD_TYPE + ctest "-j$((Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors)" --timeout 5400 --output-on-failure -C $BUILD_TYPE if (-not $?) { $RecentExitCode = $LASTEXITCODE