-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix cmake errors #2745
fix cmake errors #2745
Conversation
@@ -284,7 +284,7 @@ function(go_library TARGET_NAME) | |||
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD | |||
COMMAND rm "${${TARGET_NAME}_LIB_PATH}" | |||
# Golang build source code | |||
COMMAND env GOPATH=${GOPATH} ${CMAKE_Go_COMPILER} build ${BUILD_MODE} | |||
COMMAND env LIBRARY_PATH=${CMAKE_BINARY_DIR}/go/pserver/client/c/:$ENV{LIBRARY_PATH} GOPATH=${GOPATH} ${CMAKE_Go_COMPILER} build ${BUILD_MODE} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
直接写死在generic.cmake里面?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我也觉得太丑陋了。这个 和 @gangliao 商量他后边会做优化。我们先让大家的研发不会被block。
比写死在.go里边好了一点点,这里的cmake路径是可以探测的。
里边还有一个更丑陋的。:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.