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
6565option (WITH_ANAKIN "Compile with Anakin library" OFF )
6666option (WITH_GRPC "Use grpc as the default rpc framework" ${WITH_DISTRIBUTE} )
6767option (WITH_BRPC_RDMA "Use brpc rdma as the rpc protocal" OFF )
68+ option (WITH_INFERENCE "Compile fluid inference library" ON )
6869option (WITH_SYSTEM_BLAS "Use system blas library" OFF )
6970option (PY_VERSION "Compile PaddlePaddle with python3 support" ${PY_VERSION} )
7071
Original file line number Diff line number Diff line change @@ -5,5 +5,7 @@ add_subdirectory(operators)
55add_subdirectory (pybind )
66add_subdirectory (string )
77add_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