[ "$(command -v cmake)" ] || return 0

if [ "$(command -v nproc)" ]
then
    export CMAKE_BUILD_PARALLEL_LEVEL="$(nproc)"
fi