summaryrefslogtreecommitdiffstats
path: root/do_cmake.sh
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-08-11 11:32:20 +0200
committerKefu Chai <kchai@redhat.com>2021-08-11 11:34:23 +0200
commit7720651ea94cad4fe7fbb7fabe83fef16f6a973f (patch)
tree1a5b756763d2ed2ed5282e31debf851b6ff9cdb5 /do_cmake.sh
parentMerge pull request #42715 from tchaikov/wip-crimson-tls-int-cond (diff)
downloadceph-7720651ea94cad4fe7fbb7fabe83fef16f6a973f.tar.xz
ceph-7720651ea94cad4fe7fbb7fabe83fef16f6a973f.zip
do_cmake:sh: do not set BOOST_J
do_cmake.sh is called by src/script/run-make.sh in configure() function, in src/script/run-make.sh, BOOST_J is also set if it is not set. so we can drop the code setting BOOST_J in do_cmake.sh. this helps to silence the cmake warning like: CMake Warning: Manually-specified variables were not used by the project: BOOST_J Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to '')
-rwxr-xr-xdo_cmake.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/do_cmake.sh b/do_cmake.sh
index 318715dafc0..3eb9b08d8af 100755
--- a/do_cmake.sh
+++ b/do_cmake.sh
@@ -59,11 +59,6 @@ if type ccache > /dev/null 2>&1 ; then
ARGS+=" -DWITH_CCACHE=ON"
fi
-if [[ ! "$ARGS $@" =~ "-DBOOST_J" ]] ; then
- ncpu=$(getconf _NPROCESSORS_ONLN 2>&1)
- [ -n "$ncpu" -a "$ncpu" -gt 1 ] && ARGS+=" -DBOOST_J=$(expr $ncpu / 2)"
-fi
-
mkdir $BUILD_DIR
cd $BUILD_DIR
if type cmake3 > /dev/null 2>&1 ; then