make -jN ignored in build scripts
@santiago.ospina thanks for the new build scripts, they are very nice!
One very minor issue is that make is always called with -j1
Example logs from CI build:
2021-02-11T17:45:37.9681461Z + export DUNE_COPASI_USE_STATIC_DEPS=ON
2021-02-11T17:45:37.9682212Z + DUNE_COPASI_USE_STATIC_DEPS=ON
2021-02-11T17:45:37.9683032Z + export CMAKE_INSTALL_PREFIX=/opt/smelibs
2021-02-11T17:45:37.9683787Z + CMAKE_INSTALL_PREFIX=/opt/smelibs
2021-02-11T17:45:37.9685251Z + export 'MAKE_FLAGS=-j2 VERBOSE=1'
2021-02-11T17:45:37.9686226Z + MAKE_FLAGS='-j2 VERBOSE=1'
2021-02-11T17:45:37.9687625Z + [[ -n '' ]]
2021-02-11T17:45:37.9688828Z + git clone -b muparser_cmake --depth 1 https://gitlab.dune-project.org/copasi/dune-copasi.git
2021-02-11T17:45:37.9700067Z Cloning into 'dune-copasi'...
2021-02-11T17:45:39.6908743Z + cd dune-copasi
2021-02-11T17:45:39.6909929Z + bash dune-copasi.opts
2021-02-11T17:45:39.7042839Z Installation Prefix:
2021-02-11T17:45:39.7055193Z /opt/smelibs
2021-02-11T17:45:39.7056259Z OS Type:
2021-02-11T17:45:39.7071952Z linux
2021-02-11T17:45:39.7074158Z CMake flags:
2021-02-11T17:45:39.7095291Z -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS='-fvisibility=hidden -fpic' -DCMAKE_CXX_FLAGS_DEBUG='-O0 -g' -DCMAKE_CXX_FLAGS_RELEASE='-O3' -DCMAKE_CXX_FLAGS_RELWITHDEBINFO='-O2 -g3 -DNDEBUG -fno-omit-frame-pointer' -DCMAKE_CXX_STANDARD=17 -DCMAKE_DISABLE_FIND_PACKAGE_MPI=ON -DCMAKE_GENERATOR='Unix Makefiles' -DCMAKE_INSTALL_PREFIX=/opt/smelibs -DCMAKE_PREFIX_PATH='/opt/smelibs' -DDUNE_COPASI_MD_EXECUTABLE=ON -DDUNE_COPASI_USE_STATIC_DEPS=ON -DDUNE_PYTHON_ALLOW_GET_PIP=OFF -DDUNE_PYTHON_VIRTUALENV_PATH=/opt/smelibs/venv -DDUNE_PYTHON_VIRTUALENV_SETUP=OFF -DDUNE_USE_FALLBACK_FILESYSTEM=OFF -DDUNE_USE_ONLY_STATIC_LIBS=ON -DDUNE_VENDOR_FMT=OFF -DGMPXX_INCLUDE_DIR:PATH='/opt/smelibs/include' -DGMPXX_LIB:FILEPATH='/opt/smelibs/lib/libgmpxx.a' -DGMP_LIB:FILEPATH='/opt/smelibs/lib/libgmp.a' -Dfmt_ROOT='/opt/smelibs' -DCMAKE_DISABLE_FIND_PACKAGE_QuadMath=TRUE -DF77=true -DBUILD_SHARED_LIBS=OFF
2021-02-11T17:45:39.7101601Z Make flags:
2021-02-11T17:45:39.7114583Z -j2 VERBOSE=1
..looks good, but then later
2021-02-11T17:46:00.0261674Z -- Build files have been written to: /tmp/setup-dune/dune-common/build-cmake
2021-02-11T17:46:00.0380492Z --- calling make for dune-common ---
2021-02-11T17:46:00.0529767Z ----- using default flags $MAKE_FLAGS from /home/runner/work/sme_deps_dune/sme_deps_dune/dune-copasi/dune-copasi.opts -----
2021-02-11T17:46:00.0530927Z build directory: build-cmake
2021-02-11T17:46:00.0554819Z cmake --build . -- -j1
2021-02-11T17:46:00.0861155Z Scanning dependencies of target dunecommon
2021-02-11T17:46:00.0908019Z [ 16%] Building CXX object dune/common/CMakeFiles/dunecommon.dir/debugalign.cc.o
etc, always with -j1