Skip to content
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

Fixes for Kinetic #161

Merged
merged 1 commit into from Jan 16, 2017
Merged

Fixes for Kinetic #161

merged 1 commit into from Jan 16, 2017

Conversation

VictorLamoine
Copy link
Contributor

@shaun-edwards
Copy link
Member

@VictorLamoine, thanks for the PR. I'm working on getting some previous PRs done in indigo and jade. Once I have those branches finalized, I will create a kinetic branch for this change (I assume you are ok with that). Thursday is my ROS-I day, so you should see more activity then.

@VictorLamoine
Copy link
Contributor Author

Yup, closing and waiting :)

@shaun-edwards
Copy link
Member

BTW...no need to close. I can re-assign the base and approve the PR without anything else from you.

@shaun-edwards shaun-edwards reopened this Jan 5, 2017
@VictorLamoine
Copy link
Contributor Author

I didn't know you could re-assign the base! Good to know

Copy link
Contributor

@pbeeson pbeeson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have these exact same fixes in my fork, and was just about to submit the updated PR.

@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 2.8.3)

project(industrial_trajectory_filters)

add_compile_options(-std=c++11)
Copy link
Member

@mathias-luedtke mathias-luedtke Jan 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add_compile_options requires CMake version 2.8.12, so the first line should be updated as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed all versions to 2.8.12. Where do you find the minimum required version for a CMake option?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on my own understanding of things (and this random SO post to back me up), wouldn't target_compile_options(..) be a better way of doing this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add_compile_options is to target_compile_options as include_directories is to target_include_directories.
If I understand it correctly, mixing options between targets might lead to ABI incompabilities, so the per-directory/package directive should be less error-prone.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add_compile_options is to target_compile_options as include_directories is to target_include_directories.

I'm not sure I follow this. Being more specific is always a good thing in my opinion.

If I understand it correctly, mixing options between targets might lead to ABI incompabilities, so the per-directory/package directive should be less error-prone.

We wouldn't be mixing options, as target_compile_options(..) would be used with all targets in the package. It would also seem to support the transitive declaration of flags, which seems beneficial to me. I can't find docs on add_compile_options(..) stating that it supports that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I follow this. Being more specific is always a good thing in my opinion.

So, are you really using target_include_directories? ;)

We wouldn't be mixing options, as target_compile_options(..) would be used with all targets in the package.

IMHO this is not the purpose of target_compile_options, it is meant for fine granular settings. If you want to set options for all targets anyway, add_compile_options should work as expected. It sets the options for all sources in the current directory and below.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the status of this pull request? If there are many ways to skin this cat, but the difference is minute, then perhaps we could merge this and iterate on the implementation as we go.

@shaun-edwards shaun-edwards changed the base branch from indigo-devel to kinetic-devel January 16, 2017 07:28
Copy link
Member

@shaun-edwards shaun-edwards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution.

@shaun-edwards
Copy link
Member

Travis is foobar'ed. I'm going to approve this PR and see if the branch build fails.

Thanks everyone for the contribution. I'm going to work on a kinetic release tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

7 participants