Skip to content

Commit

Permalink
fix: fix invaild build type (apache#1521)
Browse files Browse the repository at this point in the history
issue: apache#1520

fix invaild macro `CMAKE_BUILD_TYPE`
(`debug` -> `Debug`, `release` -> `Release`)
  • Loading branch information
GehaFearless authored Jun 12, 2023
1 parent 4ae3999 commit 6972752
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6972752

Please sign in to comment.