提交 cf571103 编写于 作者: W wenxingsen.wxs

add flag BUILD_AS_MAIN_PROJECT

上级 b2c217a4
cmake_minimum_required(VERSION 3.20.0)
include(cmake/Utils.cmake)
include(cmake/Env.cmake)
if(BUILD_AS_MAIN_PROJECT)
message(STATUS "drcmsg build as main project")
include(cmake/Utils.cmake)
include(cmake/Env.cmake)
else()
message(STATUS "drcmsg build as sub project")
endif()
project(oblogmsg VERSION 3.2.1)
......
......@@ -6,7 +6,7 @@ BUILD_SH=$TOPDIR/build.sh
ALL_ARGS=("$@")
DEP_DIR=${TOPDIR}/deps/3rd/usr/local/oceanbase/deps/devel
TOOLS_DIR=${TOPDIR}/deps/3rd/usr/local/oceanbase/devtools
CMAKE_COMMAND="${TOOLS_DIR}/bin/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1"
CMAKE_COMMAND="${TOOLS_DIR}/bin/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DBUILD_AS_MAIN_PROJECT=ON"
echo "$0 ${ALL_ARGS[@]}"
......@@ -137,4 +137,4 @@ function main
esac
}
main "$@"
\ No newline at end of file
main "$@"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册