File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ option(REPLACE_ENFORCE_GLOG "Replace PADDLE_ENFORCE with glog/CHECK for better d
65
65
option (WITH_ANAKIN "Compile with Anakin library" OFF )
66
66
option (WITH_GRPC "Use grpc as the default rpc framework" ${WITH_DISTRIBUTE} )
67
67
option (WITH_BRPC_RDMA "Use brpc rdma as the rpc protocal" OFF )
68
+ option (WITH_INFERENCE "Compile fluid inference library" ON )
68
69
option (WITH_SYSTEM_BLAS "Use system blas library" OFF )
69
70
option (PY_VERSION "Compile PaddlePaddle with python3 support" ${PY_VERSION} )
70
71
Original file line number Diff line number Diff line change @@ -5,5 +5,7 @@ add_subdirectory(operators)
5
5
add_subdirectory (pybind )
6
6
add_subdirectory (string )
7
7
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 ()
You can’t perform that action at this time.
0 commit comments