File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ if(ANDROID OR IOS)
83
83
"Disable RDMA when cross-compiling for Android and iOS" FORCE )
84
84
set (WITH_MKL OFF CACHE STRING
85
85
"Disable MKL when cross-compiling for Android and iOS" FORCE )
86
+ set (WITH_GOLANG OFF CACHE STRING
87
+ "Disable golang when cross-compiling for Android and iOS" FORCE )
86
88
87
89
# Compile PaddlePaddle mobile inference library
88
90
if (NOT WITH_C_API )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ if(WITH_TESTING)
49
49
add_subdirectory (test )
50
50
endif ()
51
51
52
- if (NOT WITH_C_API )
52
+ if (NOT MOBILE_INFERENCE )
53
53
add_executable (paddle_pserver_main ${PSERVER_MAIN_SOURCES} )
54
54
link_paddle_exe (paddle_pserver_main )
55
55
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ if(WITH_TESTING)
54
54
add_subdirectory (tests )
55
55
endif ()
56
56
57
- if (NOT WITH_C_API )
57
+ if (NOT MOBILE_INFERENCE )
58
58
add_paddle_exe (paddle_trainer TrainerMain.cpp )
59
59
add_paddle_exe (paddle_merge_model MergeModel.cpp )
60
60
@@ -74,7 +74,5 @@ endif()
74
74
if (WITH_GOLANG )
75
75
add_dependencies (paddle_trainer_lib paddle_pserver_cclient )
76
76
target_link_libraries (paddle_trainer_lib paddle_pserver_cclient )
77
- if (NOT WITH_C_API )
78
- target_link_libraries (paddle_trainer paddle_pserver_cclient )
79
- endif ()
77
+ target_link_libraries (paddle_trainer paddle_pserver_cclient )
80
78
endif (WITH_GOLANG )
You can’t perform that action at this time.
0 commit comments