From 752636f94f7675f6eaaed3a42aea7a203b79a66f Mon Sep 17 00:00:00 2001 From: WangXi Date: Sat, 18 Apr 2020 09:58:58 +0800 Subject: [PATCH] cache dgc package (#23941) --- cmake/external/dgc.cmake | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cmake/external/dgc.cmake b/cmake/external/dgc.cmake index b0a386c2881..8472a0743b9 100644 --- a/cmake/external/dgc.cmake +++ b/cmake/external/dgc.cmake @@ -14,17 +14,24 @@ INCLUDE(ExternalProject) -SET(DGC_SOURCES_DIR "${THIRD_PARTY_PATH}/dgc") +SET(DGC_PREFIX_DIR "${THIRD_PARTY_PATH}/dgc") +SET(DGC_SOURCES_DIR "${THIRD_PARTY_PATH}/dgc/src/extern_dgc") SET(DGC_INSTALL_DIR "${THIRD_PARTY_PATH}/install/dgc") SET(DGC_INCLUDE_DIR "${DGC_INSTALL_DIR}/include" CACHE PATH "dgc include directory." FORCE) SET(DGC_LIBRARIES "${DGC_INSTALL_DIR}/lib/libdgc.a" CACHE FILEPATH "dgc library." FORCE) +SET(DGC_URL "http://fleet.bj.bcebos.com/collective_ef2216a.tgz") INCLUDE_DIRECTORIES(${DGC_INCLUDE_DIR}) +cache_third_party(extern_dgc + URL ${DGC_URL} + DIR DGC_SOURCES_DIR) + ExternalProject_Add( extern_dgc ${EXTERNAL_PROJECT_LOG_ARGS} - URL "http://fleet.bj.bcebos.com/collective_ef2216a.tgz" + "${DGC_DOWNLOAD_CMD}" URL_MD5 "2f67549fd5f1262383d83289abc4f88f" + PREFIX "${DGC_PREFIX_DIR}" SOURCE_DIR "${DGC_SOURCES_DIR}" CONFIGURE_COMMAND "" BUILD_COMMAND make -j $(nproc) -- GitLab