Skip to content

Commit 9331ba7

Browse files
committed
add WITH_INFERENCE flag
1 parent 97a7751 commit 9331ba7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ option(REPLACE_ENFORCE_GLOG "Replace PADDLE_ENFORCE with glog/CHECK for better d
6565
option(WITH_ANAKIN "Compile with Anakin library" OFF)
6666
option(WITH_GRPC "Use grpc as the default rpc framework" ${WITH_DISTRIBUTE})
6767
option(WITH_BRPC_RDMA "Use brpc rdma as the rpc protocal" OFF)
68+
option(WITH_INFERENCE "Compile fluid inference library" ON)
6869
option(WITH_SYSTEM_BLAS "Use system blas library" OFF)
6970
option(PY_VERSION "Compile PaddlePaddle with python3 support" ${PY_VERSION})
7071

paddle/fluid/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ add_subdirectory(operators)
55
add_subdirectory(pybind)
66
add_subdirectory(string)
77
add_subdirectory(recordio)
8-
# NOTE: please add subdirectory inference at last.
9-
add_subdirectory(inference)
8+
if(WITH_INFERENCE)
9+
# NOTE: please add subdirectory inference at last.
10+
add_subdirectory(inference)
11+
endif()

0 commit comments

Comments
 (0)