From a6f5021fcc58b21f4414bae6bf4731ef6971582c Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Wed, 7 Jun 2023 10:59:53 +0800 Subject: [PATCH] add_submodule_snappy (#54401) --- cmake/external/snappy.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/external/snappy.cmake b/cmake/external/snappy.cmake index fdd18727cf0..01f22670180 100644 --- a/cmake/external/snappy.cmake +++ b/cmake/external/snappy.cmake @@ -20,7 +20,7 @@ set(SNAPPY_INSTALL_DIR ${THIRD_PARTY_PATH}/install/snappy) set(SNAPPY_INCLUDE_DIR "${SNAPPY_INSTALL_DIR}/include" CACHE PATH "snappy include directory." FORCE) - +set(SOURCE_DIR ${PADDLE_SOURCE_DIR}/third_party/snappy) if(WIN32) set(SNAPPY_CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4267") if(NOT EXISTS "${SNAPPY_INSTALL_DIR}/lib/libsnappy.lib") @@ -38,8 +38,7 @@ endif() ExternalProject_Add( extern_snappy - GIT_REPOSITORY "https://github.com/google/snappy" - GIT_TAG "1.1.7" + SOURCE_DIR ${SOURCE_DIR} PREFIX ${SNAPPY_PREFIX_DIR} UPDATE_COMMAND "" CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -- GitLab