提交 b1a1124d 编写于 作者: L Luo Tao

fix compiler and run error in static library

上级 a00e04bb
...@@ -2,7 +2,12 @@ set -x ...@@ -2,7 +2,12 @@ set -x
PADDLE_ROOT=$1 PADDLE_ROOT=$1
WITH_MKL=$2 WITH_MKL=$2
WITH_GPU=$3 WITH_GPU=$3
if [ $3 == "ON" ]; then if [ $2 == ON ]; then
# You can export yourself if move the install path
MKL_LIB=${PADDLE_ROOT}/build/fluid_install_dir/third_party/install/mklml/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${MKL_LIB}
fi
if [ $3 == ON ]; then
use_gpu_list='true false' use_gpu_list='true false'
else else
use_gpu_list='false' use_gpu_list='false'
......
...@@ -14,10 +14,6 @@ cc_library(paddle_fluid_api ...@@ -14,10 +14,6 @@ cc_library(paddle_fluid_api
get_property(fluid_modules GLOBAL PROPERTY FLUID_MODULES) get_property(fluid_modules GLOBAL PROPERTY FLUID_MODULES)
if(WITH_CONTRIB)
set(fluid_modules "${fluid_modules}" paddle_inference_api)
endif()
# Create static library # Create static library
cc_library(paddle_fluid DEPS ${fluid_modules} paddle_fluid_api) cc_library(paddle_fluid DEPS ${fluid_modules} paddle_fluid_api)
if(NOT APPLE) if(NOT APPLE)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册