--config by DCMAKE_BUILD_TYPE

This commit is contained in:
apio 2022-07-19 15:18:15 +02:00
parent a3fc4c3f32
commit 3b10799387
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
cmake --build build --config "${1:-Debug}" cmake --build build -DCMAKE_BUILD_TYPE="${1:-Debug}"

View File

@ -3,4 +3,4 @@ then
mkdir build mkdir build
fi fi
cmake -S . -B build -G "${1:-Ninja}" --config "${2:-Debug}" cmake -S . -B build -G "${1:-Ninja}" -DCMAKE_BUILD_TYPE="${2:-Debug}"