Skip to content

Commit

Permalink
[Compile] Update glog compiling (#5802)
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyIsFunny committed Mar 29, 2021
1 parent c33eb44 commit 17d7322
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -10,3 +10,6 @@
[submodule "third-party/protobuf-host"]
path = third-party/protobuf-host
url = https://github.com/protocolbuffers/protobuf.git
[submodule "third-party/glog"]
path = third-party/glog
url = https://github.com/google/glog.git
5 changes: 3 additions & 2 deletions cmake/external/glog.cmake
Expand Up @@ -14,7 +14,7 @@

INCLUDE(ExternalProject)

SET(GLOG_SOURCES_DIR ${THIRD_PARTY_PATH}/glog)
SET(GLOG_SOURCES_DIR ${CMAKE_SOURCE_DIR}/third-party/glog)
SET(GLOG_INSTALL_DIR ${THIRD_PARTY_PATH}/install/glog)
SET(GLOG_INCLUDE_DIR "${GLOG_INSTALL_DIR}/include" CACHE PATH "glog include directory." FORCE)

Expand Down Expand Up @@ -44,9 +44,10 @@ ExternalProject_Add(
extern_glog
${EXTERNAL_PROJECT_LOG_ARGS}
DEPENDS gflags
GIT_REPOSITORY ${GLOG_REPOSITORY}
GIT_REPOSITORY ""
GIT_TAG ${GLOG_TAG}
PREFIX ${GLOG_SOURCES_DIR}
SOURCE_DIR ${GLOG_SOURCES_DIR}
UPDATE_COMMAND ""
CMAKE_ARGS ${CROSS_COMPILE_CMAKE_ARGS}
${OPTIONAL_ARGS}
Expand Down
1 change: 1 addition & 0 deletions third-party/glog
Submodule glog added at a6a166

0 comments on commit 17d7322

Please sign in to comment.