#!/bin/bash

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
      -G Ninja \
      -DCMAKE_PREFIX_PATH=${PREFIX} \
      ${CMAKE_ARGS} \
      -DCMAKE_INSTALL_PYTHONDIR=${SP_DIR} \
      -DCMAKE_INSTALL_LIBDIR=lib \
      ..
ninja install -j${CPU_COUNT}

#!/bin/bash

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
      -G Ninja \
      -DCMAKE_PREFIX_PATH=${PREFIX} \
      ${CMAKE_ARGS} \
      -DCMAKE_INSTALL_PYTHONDIR=${SP_DIR} \
      -DCMAKE_INSTALL_LIBDIR=lib \
      ..
ninja install

Use all CPUs by default with ninja
Use all CPUs by default with ninja

Co-authored-by: Uwe L. Korn <61df1ade108ad4f778ae80c035cf888799bb0fe0@users.noreply.github.com>