提交 ec5db380 编写于 作者: H Helin Wang

fix according to comments

上级 633171c2
......@@ -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)
......@@ -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)
......@@ -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)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册