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 @@ -81,6 +81,8 @@ if(ANDROID OR IOS)
8181 "Disable RDMA when cross-compiling for Android and iOS" FORCE)
8282 set (WITH_MKL OFF CACHE STRING
8383 "Disable MKL when cross-compiling for Android and iOS" FORCE)
84+ set (WITH_GOLANG OFF CACHE STRING
85+ "Disable golang when cross-compiling for Android and iOS" FORCE)
8486
8587 # Compile PaddlePaddle mobile inference library
8688 if (NOT WITH_C_API)
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ if(WITH_TESTING)
4949 add_subdirectory (test )
5050endif ()
5151
52- if (NOT WITH_C_API )
52+ if (NOT MOBILE_INFERENCE )
5353 add_executable (paddle_pserver_main ${PSERVER_MAIN_SOURCES} )
5454 link_paddle_exe(paddle_pserver_main)
5555
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ if(WITH_TESTING)
5454 add_subdirectory (tests)
5555endif ()
5656
57- if (NOT WITH_C_API )
57+ if (NOT MOBILE_INFERENCE )
5858 add_paddle_exe(paddle_trainer TrainerMain.cpp)
5959 add_paddle_exe(paddle_merge_model MergeModel.cpp)
6060
@@ -74,7 +74,5 @@ endif()
7474if (WITH_GOLANG)
7575 add_dependencies (paddle_trainer_lib paddle_pserver_cclient)
7676 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)
8078endif (WITH_GOLANG)
You can’t perform that action at this time.
0 commit comments