未验证 提交 a6f5021f 编写于 作者: R risemeup1 提交者: GitHub

add_submodule_snappy (#54401)

上级 397758fb
...@@ -20,7 +20,7 @@ set(SNAPPY_INSTALL_DIR ${THIRD_PARTY_PATH}/install/snappy) ...@@ -20,7 +20,7 @@ set(SNAPPY_INSTALL_DIR ${THIRD_PARTY_PATH}/install/snappy)
set(SNAPPY_INCLUDE_DIR set(SNAPPY_INCLUDE_DIR
"${SNAPPY_INSTALL_DIR}/include" "${SNAPPY_INSTALL_DIR}/include"
CACHE PATH "snappy include directory." FORCE) CACHE PATH "snappy include directory." FORCE)
set(SOURCE_DIR ${PADDLE_SOURCE_DIR}/third_party/snappy)
if(WIN32) if(WIN32)
set(SNAPPY_CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4267") set(SNAPPY_CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4267")
if(NOT EXISTS "${SNAPPY_INSTALL_DIR}/lib/libsnappy.lib") if(NOT EXISTS "${SNAPPY_INSTALL_DIR}/lib/libsnappy.lib")
...@@ -38,8 +38,7 @@ endif() ...@@ -38,8 +38,7 @@ endif()
ExternalProject_Add( ExternalProject_Add(
extern_snappy extern_snappy
GIT_REPOSITORY "https://github.com/google/snappy" SOURCE_DIR ${SOURCE_DIR}
GIT_TAG "1.1.7"
PREFIX ${SNAPPY_PREFIX_DIR} PREFIX ${SNAPPY_PREFIX_DIR}
UPDATE_COMMAND "" UPDATE_COMMAND ""
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册