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

add flag BUILD_AS_MAIN_PROJECT

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