提交 ad3164d5 编写于 作者: X xh0 提交者: wangzelin.wzl

fix: submodule config for liboblog

上级 fe6827d0
[submodule "logmessage"]
path = deps/logmessage
url = git@github.com:oceanbase/oblogmsg.git
url = git@github.com:oceanbase/oblogmsg.git
branch = master
......@@ -2,11 +2,11 @@ message(STATUS "OB_BUILD_LIBOBLOG ${OB_BUILD_LIBOBLOG}")
if (OB_BUILD_LIBOBLOG)
find_package(Git QUIET)
if (GIT_FOUND)
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --remote
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --remote
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
RESULT_VARIABLE GIT_SUBMOD_RESULT)
if (NOT GIT_SUBMOD_RESULT EQUAL "0")
message(FATAL_ERROR "git submodule update --remote failed with ${GIT_SUBMOD_RESULT}, please checkout submodules")
message(FATAL_ERROR "git submodule update --init --remote failed with ${GIT_SUBMOD_RESULT}, please checkout submodules")
endif()
add_subdirectory(${PROJECT_SOURCE_DIR}/deps/logmessage ${PROJECT_BINARY_DIR}/deps/logmessage EXCLUDE_FROM_ALL)
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册