diff --git a/core/cube/cube-transfer/CMakeLists.txt b/core/cube/cube-transfer/CMakeLists.txt index ab91c0f5f274d971d866ad33680a49103a641934..78e47c5b840631a3092f3a799e2424d370444a2e 100644 --- a/core/cube/cube-transfer/CMakeLists.txt +++ b/core/cube/cube-transfer/CMakeLists.txt @@ -18,9 +18,11 @@ project(cube-transfer Go) include(cmake/golang.cmake) -ExternalGoProject_Add(docopt-go github.com/docopt/docopt-go) ExternalGoProject_Add(rfw github.com/mipearson/rfw) -ExternalGoProject_Add(logex github.com/Badangel/logex) +ExternalGoProject_Add(docopt-go github.com/docopt/docopt-go) +add_custom_target(logex + COMMAND env GOPATH=${GOPATH} ${CMAKE_Go_COMPILER} get github.com/Badangel/logex + DEPENDS rfw) add_subdirectory(src) install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/conf DESTINATION ${PADDLE_SERVING_INSTALL_DIR}) diff --git a/core/cube/cube-transfer/cmake/golang.cmake b/core/cube/cube-transfer/cmake/golang.cmake index 817d029d946bad8da4f4cf2785e68d062fc4cada..5a26c5d2b08dc0dd9e23e3f724630d84eaabec9b 100644 --- a/core/cube/cube-transfer/cmake/golang.cmake +++ b/core/cube/cube-transfer/cmake/golang.cmake @@ -57,4 +57,4 @@ function(ADD_GO_LIBRARY NAME BUILD_TYPE) if(NOT BUILD_TYPE STREQUAL "STATIC") install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME} DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/bin) endif() -endfunction(ADD_GO_LIBRARY) \ No newline at end of file +endfunction(ADD_GO_LIBRARY)