From cee87312583eec558e9e0ec7074e2d4da260a14c Mon Sep 17 00:00:00 2001 From: minqiyang Date: Tue, 10 Jul 2018 17:28:09 +0800 Subject: [PATCH] Fix inference compilation problem --- paddle/contrib/inference/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/contrib/inference/CMakeLists.txt b/paddle/contrib/inference/CMakeLists.txt index c30eff50107..e745d8a429f 100644 --- a/paddle/contrib/inference/CMakeLists.txt +++ b/paddle/contrib/inference/CMakeLists.txt @@ -49,6 +49,7 @@ cc_library(paddle_inference_api # Here the shared library doesn't depend on other fluid libraries, or double free will occur. cc_library(paddle_inference_api_shared SHARED SRCS paddle_inference_api.cc paddle_inference_api_impl.cc) +add_dependencies(paddle_inference_api_shared ${FLUID_CORE_MODULES} ${GLOB_OP_LIB}) set_target_properties(paddle_inference_api_shared PROPERTIES OUTPUT_NAME paddle_inference_api) if(NOT APPLE) set(LINK_FLAGS "-fPIC -fvisibility=hidden") -- GitLab