File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ option(WITH_DOC "Compile PaddlePaddle with documentation" OFF)
43
43
option (ON_COVERALLS "Compile PaddlePaddle with code coverage" OFF )
44
44
option (COVERALLS_UPLOAD "Package code coverage data to coveralls" OFF )
45
45
option (ON_TRAVIS "Exclude special unit test on Travis CI" OFF )
46
+ option (WITH_C_API "Compile PaddlePaddle with C-API(Prediction)" ON )
46
47
47
48
# CMAKE_BUILD_TYPE
48
49
if (NOT CMAKE_BUILD_TYPE )
@@ -53,6 +54,7 @@ endif()
53
54
54
55
set (THIRD_PARTY_PATH "${PROJ_ROOT} /third_party" CACHE STRING
55
56
"A path setting third party libraries download & build directories." )
57
+
56
58
########################################################################################
57
59
58
60
include (external/zlib) # download, build, install zlib
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ add_subdirectory(gserver)
8
8
add_subdirectory (pserver)
9
9
add_subdirectory (trainer)
10
10
add_subdirectory (scripts)
11
- add_subdirectory (capi)
11
+ if (WITH_C_API)
12
+ add_subdirectory (capi)
13
+ endif ()
12
14
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /setup.py.in
13
15
${CMAKE_CURRENT_SOURCE_DIR} /setup.py)
14
16
You can’t perform that action at this time.
0 commit comments