Commit d96e75d1 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Merge branch 'build_optimisation' into 'develop'

Build Optimization

See merge request oai/cn5g/oai-cn5g-smf!16
parents 328ca05c 27234770
...@@ -55,7 +55,7 @@ install_fmt() { ...@@ -55,7 +55,7 @@ install_fmt() {
git clone https://github.com/fmtlib/fmt.git git clone https://github.com/fmtlib/fmt.git
ret=$?;[[ $ret -ne 0 ]] && return $ret ret=$?;[[ $ret -ne 0 ]] && return $ret
cd fmt cd fmt
cmake . cmake -DFMT_TEST=FALSE .
ret=$?;[[ $ret -ne 0 ]] && return $ret ret=$?;[[ $ret -ne 0 ]] && return $ret
make -j `nproc` make -j `nproc`
ret=$?;[[ $ret -ne 0 ]] && return $ret ret=$?;[[ $ret -ne 0 ]] && return $ret
...@@ -186,7 +186,7 @@ install_nlohmann_from_git() { ...@@ -186,7 +186,7 @@ install_nlohmann_from_git() {
cd json && git checkout master cd json && git checkout master
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
mkdir _build && cd _build mkdir _build && cd _build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .. cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DJSON_BuildTests=OFF ..
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
make make
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment