This is an automated email from the ASF dual-hosted git repository.
laiyingchun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to refs/heads/master by this push:
new 6972752a5 fix: fix invaild build type (#1521)
6972752a5 is described below
commit 6972752a514953a2c1e5b800549cc3f2717707af
Author: liguohao <[email protected]>
AuthorDate: Mon Jun 12 10:39:32 2023 +0800
fix: fix invaild build type (#1521)
issue: https://github.com/apache/incubator-pegasus/issues/1520
fix invaild macro `CMAKE_BUILD_TYPE`
(`debug` -> `Debug`, `release` -> `Release`)
---
run.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/run.sh b/run.sh
index 46164ef69..b25e4ff90 100755
--- a/run.sh
+++ b/run.sh
@@ -210,13 +210,20 @@ function run_build()
CMAKE_OPTIONS="-DCMAKE_C_COMPILER=${C_COMPILER}
-DCMAKE_CXX_COMPILER=${CXX_COMPILER}
-DUSE_JEMALLOC=${USE_JEMALLOC}
- -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
-DENABLE_GCOV=${ENABLE_GCOV}
-DENABLE_GPERF=${ENABLE_GPERF}
-DBoost_NO_BOOST_CMAKE=ON
-DBOOST_ROOT=${THIRDPARTY_ROOT}/output
-DBoost_NO_SYSTEM_PATHS=ON"
+ echo "BUILD_TYPE=$BUILD_TYPE"
+ if [ "$BUILD_TYPE" == "debug" ]
+ then
+ CMAKE_OPTIONS="$CMAKE_OPTIONS -DCMAKE_BUILD_TYPE=Debug"
+ else
+ CMAKE_OPTIONS="$CMAKE_OPTIONS -DCMAKE_BUILD_TYPE=Release"
+ fi
+
if [ "$(uname)" == "Darwin" ]; then
CMAKE_OPTIONS="${CMAKE_OPTIONS}
-DMACOS_OPENSSL_ROOT_DIR=/usr/local/opt/openssl"
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]