From 21bd36404785496f64b283e9d0016a8d48866d64 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Fri, 19 Jun 2020 14:01:38 +0800 Subject: [PATCH] [FlatBuffer] Fix the issue that third-party flatbuffer module can not compile successfully (#3812) --- cmake/external/flatbuffers.cmake | 2 +- lite/api/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/external/flatbuffers.cmake b/cmake/external/flatbuffers.cmake index fcd286254d..0250ccd6fe 100644 --- a/cmake/external/flatbuffers.cmake +++ b/cmake/external/flatbuffers.cmake @@ -44,7 +44,7 @@ SET(OPTIONAL_ARGS "-DCMAKE_CXX_COMPILER=${HOST_CXX_COMPILER}" ExternalProject_Add( extern_flatbuffers ${EXTERNAL_PROJECT_LOG_ARGS} - GIT_REPOSITORY "" + GIT_REPOSITORY "https://github.com/google/flatbuffers.git" GIT_TAG "v1.12.0" SOURCE_DIR ${FLATBUFFERS_SOURCES_DIR} PREFIX ${FLATBUFFERS_INCLUDE_DIR} diff --git a/lite/api/CMakeLists.txt b/lite/api/CMakeLists.txt index 3c7f4b23fe..9ca26ef897 100644 --- a/lite/api/CMakeLists.txt +++ b/lite/api/CMakeLists.txt @@ -2,7 +2,7 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK OR (NOT LITE_WITH_LOG)) lite_cc_library(place SRCS paddle_place.cc DEPS logging) else() lite_cc_library(place SRCS paddle_place.cc DEPS glog) -endif(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK) +endif() if (LITE_ON_TINY_PUBLISH) set(CMAKE_CXX_FLAGS_RELEASE "-Os -DNDEBUG") -- GitLab