From ec5db3801c20c4ac2f93b404eadfc9c2ed48c079 Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Sat, 27 May 2017 14:51:40 +0000 Subject: [PATCH] fix according to comments --- paddle/go/cclient/CMakeLists.txt | 2 +- paddle/go/cmake/golang.cmake | 4 ++-- paddle/go/crecordio/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/go/cclient/CMakeLists.txt b/paddle/go/cclient/CMakeLists.txt index e3e9fa9f1a4..dfd104fb589 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 0ac17a967bf..e73b0c865bc 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 db8f556e50b..c395fe0b4a4 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) -- GitLab