-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Improve Go cmake, add go/master/c into cmake include path.. #2659
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
Conversation
7cc018e
to
31e1819
Compare
|
||
add_custom_target(copy_paddle_master) | ||
if(WITH_GOLANG) | ||
add_custom_command(TARGET copy_paddle_master |
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.
configure_file(<input>
<output>
COPYONLY)
If the input file is modified the build system will re-run CMake to re-configure the file and generate the build system again.
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.
After talking with @gangliao , we decide not to change here, since it depends on target paddle_master
, using add_custom_command
can express dependency.
CMakeLists.txt
Outdated
#TODO (add go/master/c back when fixed) | ||
add_subdirectory(go/pserver/cclient) | ||
# we need to symlink Paddle directory into GOPATH. If we | ||
# don't do it and we have code that depends on Paddle, go |
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.
we can put this configuration into configure.cmake
to keep the root CMAKE FILE as simple as possible.
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.
Thanks! Done.
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.