diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-27 16:30:09 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-27 16:30:09 +0100 |
commit | 52ae8bd5f0a3f3535311c3eae33bc8b19d1184cc (patch) | |
tree | 7028490bc295c6d129e02d7008e0b97c29d59231 /.local/share | |
parent | 6cf0596af2aad885944df8d3b5a19e960147f565 (diff) |
auxiliary updates
Diffstat (limited to '.local/share')
-rwxr-xr-x | .local/share/bin/mk | 6 |
1 files changed, 4 insertions, 2 deletions
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 "$@" |