-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 C-API Compilation Error #3311
Conversation
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.
- Need an issue to describe the problem.
- Curious why adding this if can fix since the default is ON.
paddle/framework/CMakeLists.txt
Outdated
@@ -44,3 +46,4 @@ cc_library(paddle_pybind SHARED | |||
mean_op | |||
cross_entropy_op | |||
recurrent_op) | |||
endif() |
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.
endif()
=> endif(WITH_PYTHON)
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.
Done.
paddle/framework/CMakeLists.txt
Outdated
@@ -35,6 +35,8 @@ add_dependencies(framework_py_proto framework_py_proto_init) | |||
|
|||
cc_library(backward SRCS backward.cc DEPS net_op) | |||
cc_test(backward_test SRCS backward_test.cc DEPS backward) | |||
|
|||
if (WITH_PYTHON) |
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.
No space after if in 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.
Done.
Fixcapi ==> Fix C-API Compilation Error |
Thanks all! |
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!
Thanks to @gongweibao for fixing this!
FIX #3329