diff --git a/sapphire.sh b/sapphire.sh index ad8e739..368230b 100755 --- a/sapphire.sh +++ b/sapphire.sh @@ -5,7 +5,7 @@ usage() echo "Sapphire utility script" echo "-----------------------" echo "sapphire.sh build : build the project" - echo "sapphire.sh generate : regenerate build files" + echo "sapphire.sh generate : regenerate build files" echo "sapphire.sh format: run clang-format on source files" echo "sapphire.sh clean: clean build files" echo "sapphire.sh install : install the project" @@ -14,7 +14,7 @@ usage() case $1 in "build") tools/build.sh "$2";; - "generate") tools/generate.sh "$2";; + "generate") tools/generate.sh "$2" "$3";; "format") tools/format.sh;; "clean") rm -rf build;; "install") tools/install.sh "$2";; diff --git a/tools/build.sh b/tools/build.sh index b879e7d..51fef35 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -1 +1 @@ -cmake --build build --config $1 \ No newline at end of file +cmake --build build --config "${1:-Debug}" \ No newline at end of file diff --git a/tools/generate.sh b/tools/generate.sh index fe045c0..0e101d1 100755 --- a/tools/generate.sh +++ b/tools/generate.sh @@ -3,4 +3,4 @@ then mkdir build fi -cmake -S . -B build -G "${1:-Ninja}" \ No newline at end of file +cmake -S . -B build -G "${1:-Ninja}" --config "${2:-Debug}" \ No newline at end of file