Integrate improvements from #137

Also fixed a bug with empty quoted strings
This commit is contained in:
Joe Eaves
2020-12-18 17:58:34 +00:00
parent a7df0a0279
commit 60ef9b54fb
4 changed files with 67 additions and 54 deletions

View File

@@ -27,7 +27,7 @@ main() {
mkdir -p "$BUILD_DIR"
CmakeGenerate
CmakeBuild "$target"
CmakeBuild $target
if [[ "$DISABLE_POSTBUILD" != "true" ]]; then
source "$BUILD_DIR/post_build.sh"
@@ -67,7 +67,7 @@ CmakeGenerate() {
CmakeBuild() {
local target="$1"
[[ -n "$target" ]] && target="--target $target"
cmake --build "$BUILD_DIR" --config $BUILD_TYPE "$target" -- -j$(nproc)
cmake --build "$BUILD_DIR" --config $BUILD_TYPE $target -- -j$(nproc)
}
[[ $SOURCED == "false" ]] && main "$@" || echo "Sourced!"