Add -j$(nproc) make option to speed up build time (#15928)

Adding `-j$(nproc)` reduces build time on the external dependencies by
approximately 25%.
This commit is contained in:
Daniel Bowman 2018-08-14 20:28:29 +01:00 committed by Paulus Schoutsen
parent c7f7912bca
commit 0ad9fcd8a0
4 changed files with 7 additions and 7 deletions

View File

@ -41,7 +41,7 @@ git submodule update --init src/platform
-DPYTHON_LIBRARY="${PYTHON_LIBRARY}" \
-DPYTHON_INCLUDE_DIR="${PYTHON_INCLUDE_DIR}" \
..
make
make -j$(nproc)
make install
ldconfig
)

View File

@ -26,7 +26,7 @@ cd build
cmake -DWITH_TEST=FALSE -DWITH_BINDING_JAVA=FALSE --DWITH_BINDING_PYTHON=FALSE --DWITH_BINDING_GO=FALSE -DWITH_DAEMON=FALSE -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ..
# compile the library
make
make -j$(nproc)
# Install the binaries/libraries to your local system (prefix is /usr/local)
make install

View File

@ -18,7 +18,7 @@ git clone --depth 1 https://github.com/auerswal/ssocr.git ssocr
cd ssocr/
# Compile the library
make
make -j$(nproc)
# Install the binaries/libraries to your local system (prefix is /usr/local)
make install