diff --git a/paddle/go/cclient/CMakeLists.txt b/paddle/go/cclient/CMakeLists.txt index e3e9fa9f1a49c89d2aecf739eface7bd04651892..dfd104fb589203e31ff183f134735fd302b263ab 100644 --- a/paddle/go/cclient/CMakeLists.txt +++ b/paddle/go/cclient/CMakeLists.txt @@ -8,5 +8,5 @@ project(cxx_go C Go) include(golang) include(flags) -add_go_library(client STATIC) +go_library(client STATIC) add_subdirectory(test) diff --git a/paddle/go/cmake/golang.cmake b/paddle/go/cmake/golang.cmake index 0ac17a967bf9be02415c75cac7d8b7e857299503..e73b0c865bcf066302646713fa9311b3e3489235 100644 --- a/paddle/go/cmake/golang.cmake +++ b/paddle/go/cmake/golang.cmake @@ -3,7 +3,7 @@ file(MAKE_DIRECTORY ${GOPATH}) set(PADDLE_IN_GOPATH "${GOPATH}/src/github.com/PaddlePaddle") file(MAKE_DIRECTORY ${PADDLE_IN_GOPATH}) -function(ADD_GO_LIBRARY NAME BUILD_TYPE) +function(GO_LIBRARY NAME BUILD_TYPE) if(BUILD_TYPE STREQUAL "STATIC") set(BUILD_MODE -buildmode=c-archive) set(LIB_NAME "lib${NAME}.a") @@ -47,4 +47,4 @@ function(ADD_GO_LIBRARY NAME BUILD_TYPE) if(NOT BUILD_TYPE STREQUAL "STATIC") install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME} DESTINATION bin) endif() -endfunction(ADD_GO_LIBRARY) +endfunction(GO_LIBRARY) diff --git a/paddle/go/crecordio/CMakeLists.txt b/paddle/go/crecordio/CMakeLists.txt index db8f556e50bfc24b3cf29b70a7b37e322f382c12..c395fe0b4a483c5a7db282d9f02c19bb143c5aeb 100644 --- a/paddle/go/crecordio/CMakeLists.txt +++ b/paddle/go/crecordio/CMakeLists.txt @@ -8,5 +8,5 @@ project(cxx_go C Go) include(golang) include(flags) -add_go_library(recordio STATIC) +go_library(recordio STATIC) add_subdirectory(test)