Skip to content
Snippets Groups Projects
Commit f877bcd3 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Added error check

parent bb8ae28a
No related branches found
No related tags found
No related merge requests found
...@@ -37,11 +37,16 @@ if ($install_reqs) ...@@ -37,11 +37,16 @@ if ($install_reqs)
# 2. Compile & install aidge_core # 2. Compile & install aidge_core
################################################################################ ################################################################################
md -Force build_cpp mkdir -Force build_cpp
md -Force $env:AIDGE_INSTALL_PATH mkdir -Force $env:AIDGE_INSTALL_PATH
cd build_cpp Set-Location build_cpp
cmake -DCMAKE_INSTALL_PREFIX:PATH=$env:AIDGE_INSTALL_PATH -DCMAKE_BUILD_TYPE=Debug .. cmake -DCMAKE_INSTALL_PREFIX:PATH=$env:AIDGE_INSTALL_PATH -DCMAKE_BUILD_TYPE=Debug ..
if(!$?) { Set-Location $PSScriptRoot; Exit $LASTEXITCODE }
cmake --build . -j2 cmake --build . -j2
if(!$?) { Set-Location $PSScriptRoot; Exit $LASTEXITCODE }
cmake --install . --config Debug cmake --install . --config Debug
if(!$?) { Set-Location $PSScriptRoot; Exit $LASTEXITCODE }
# Optional: run the unit tests # Optional: run the unit tests
ctest --output-on-failure ctest --output-on-failure
if(!$?) { Set-Location $PSScriptRoot; Exit $LASTEXITCODE }
Set-Location $PSScriptRoot
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment