提交 b0aad7d3 编写于 作者: Z zhangjun

update CMakeLists.txt

上级 2a557ddc
...@@ -49,8 +49,8 @@ set(THIRD_PARTY_BUILD_TYPE Release) ...@@ -49,8 +49,8 @@ set(THIRD_PARTY_BUILD_TYPE Release)
option(WITH_AVX "Compile Paddle Serving with AVX intrinsics" OFF) option(WITH_AVX "Compile Paddle Serving with AVX intrinsics" OFF)
option(WITH_MKL "Compile Paddle Serving with MKL support." OFF) option(WITH_MKL "Compile Paddle Serving with MKL support." OFF)
option(WITH_GPU "Compile Paddle Serving with NVIDIA GPU" OFF) option(WITH_GPU "Compile Paddle Serving with NVIDIA GPU" OFF)
option(WITH_LITE "Compile Paddle Serving with NVIDIA GPU" OFF) option(WITH_LITE "Compile Paddle Serving with Paddle Lite Engine" OFF)
option(WITH_XPU "Compile Paddle Serving with NVIDIA GPU" OFF) option(WITH_XPU "Compile Paddle Serving with Baidu Kunlun" OFF)
option(WITH_PYTHON "Compile Paddle Serving with Python" ON) option(WITH_PYTHON "Compile Paddle Serving with Python" ON)
option(CLIENT "Compile Paddle Serving Client" OFF) option(CLIENT "Compile Paddle Serving Client" OFF)
option(SERVER "Compile Paddle Serving Server" OFF) option(SERVER "Compile Paddle Serving Server" OFF)
...@@ -69,10 +69,6 @@ if (NOT DEFINED WITH_MKLDNN) ...@@ -69,10 +69,6 @@ if (NOT DEFINED WITH_MKLDNN)
endif() endif()
endif() endif()
if (SERVER)
include(external/jsoncpp)
#include(external/rocksdb)
endif()
if (SERVER OR CLIENT) if (SERVER OR CLIENT)
include(external/snappy) include(external/snappy)
...@@ -103,6 +99,8 @@ if (APP) ...@@ -103,6 +99,8 @@ if (APP)
endif() endif()
if (SERVER) if (SERVER)
include(external/jsoncpp)
#include(external/rocksdb)
include(external/cudnn) include(external/cudnn)
include(paddlepaddle) include(paddlepaddle)
endif() endif()
...@@ -133,19 +131,15 @@ if(SERVER) ...@@ -133,19 +131,15 @@ if(SERVER)
if(WITH_MKLML) if(WITH_MKLML)
list(APPEND EXTERNAL_LIBS ${MKLML_IOMP_LIB}) list(APPEND EXTERNAL_LIBS ${MKLML_IOMP_LIB})
endif() endif()
endif()
if(SERVER)
if(WITH_MKLDNN) if(WITH_MKLDNN)
list(APPEND EXTERNAL_LIBS ${MKLDNN_LIB}) list(APPEND EXTERNAL_LIBS ${MKLDNN_LIB})
endif() endif()
endif()
if (SERVER)
list(APPEND EXTERNAL_LIBS paddlepaddle) list(APPEND EXTERNAL_LIBS paddlepaddle)
endif() endif()
add_subdirectory(core) add_subdirectory(core)
if(SERVER) if(SERVER)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册