-
Notifications
You must be signed in to change notification settings - Fork 182
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
Export platform build flags to dependent catkin projects #190
Export platform build flags to dependent catkin projects #190
Conversation
Thanks for the PR, this looks like a useful change. I'll submit a review shortly with some comments. |
As it's just a few questions/comments really, let's not start a review yet.
|
# certain functions and headers. The default flags in the file included | ||
# here enable compiling for a ROS node. This file is also exported to | ||
# dependent packages via the `catkin_package` commmand. | ||
include(cmake/platform_build_flags.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.
I think documenting this as a subsection in the README might be helpful
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.
I guess the wiki page would be best but it may be out-of-date (last edit ~3 years ago)
e879f68
to
f4a6df9
Compare
@gavanderhoorn sorry it took me a little while to come back to this. Responding to your comments:
|
a64dde4
to
fa731af
Compare
ae34da8
to
6f49a74
Compare
Replaced with definitions prefixed with the package name. The old definitions are still present to avoid breaking any user code that checks them.
6f49a74
to
2e3329f
Compare
Refreshed this PR for ROS-I day. This is unchanged from last year but I believe everything brought up had been addressed. |
@jrgnicho would you want to take another look since you commented the first time around? |
This fixes the problem from #188 by using the
CFG_EXTRAS
option of thecatkin_package
command to export default compiler definitions to all projects which depend onsimple_message
. It also addresses a few of the names mentioned in #65 by adding aSIMPLE_MESSAGE_
prefix to the definitions.The "documentation" of these definitions for package users is right now only in
CMakeLists.txt
and the newplatform_build_flags.cmake
file. Let me know if there is anywhere else it would be appropriate to note this behavior.