From 52ae8bd5f0a3f3535311c3eae33bc8b19d1184cc Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 27 Nov 2024 16:30:09 +0100 Subject: auxiliary updates --- .local/share/bin/mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.local/share') diff --git a/.local/share/bin/mk b/.local/share/bin/mk index c9c2e5b..ab0f586 100755 --- a/.local/share/bin/mk +++ b/.local/share/bin/mk @@ -12,13 +12,15 @@ mode_cmake() { [ "$*" = "clean" ] && exec rm -rf "$builddir" + export CMAKE_GENERATOR="Ninja" + # re-run configuration if fresh or CMakeLists was changed if [ ! -e "$builddir/build.ninja" ] || [ "CMakeLists.txt" -nt "$builddir/build.ninja" ] ; then - cmake --log-level WARNING -B "$builddir" -G Ninja + cmake --log-level WARNING -B "$builddir" fi - cd "$builddir" && exec ninja "$@" + exec cmake --build "$builddir" -- "$@" } [ -e "CMakeLists.txt" ] && mode_cmake "$@" -- cgit v1.2.3