Skip to content

Commit

Permalink
Solve issue in cmake windows i env script.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Aug 10, 2023
1 parent 2663e38 commit d3b69f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/metacall-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d3b69f7

Please sign in to comment.