From 7f60c078c3b0b8ed505adf3eb87ca69909eca21b Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期四, 18 一月 2024 14:13:00 +0800 Subject: [PATCH] less memory --- build.sh | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/build.sh b/build.sh index eab77c7..ea2dcde 100755 --- a/build.sh +++ b/build.sh @@ -2,6 +2,7 @@ BUILD_TYPE="Debug" BUILD_DOC="OFF" +BUILD_SHARED_LIBS="ON" function usage() { echo "build.sh [release | debug | doc]" @@ -10,10 +11,12 @@ case ${1} in "release") BUILD_TYPE="Release" + BUILD_SHARED_LIBS="ON" ;; "debug") BUILD_TYPE="Debug" + BUILD_SHARED_LIBS="ON" ;; "doc") @@ -48,7 +51,7 @@ # -DBUILD_SHARED_LIBS=ON # -DCMAKE_INSTALL_PREFIX=$(pwd/../dest) # -DQCA_MAN_INSTALL_DIR:PATH=/usr/share/man -cmake -DCMAKE_INSTALL_PREFIX="$(pwd)/../dest" -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILD_SHARED_LIBS=ON \ +cmake -DCMAKE_INSTALL_PREFIX="$(pwd)/../dest" -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} \ -DBUILD_DOC=${BUILD_DOC} -DSUPPORT_RDMA=OFF .. cmake --build . -- Gitblit v1.8.0