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

If vendored assimp is present, always prefer that #970

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Apr 14, 2023

The existing behavior is to always prefer the system's assimp package if it is sufficient, even if the vendored assimp package is present. This is very confusing behavior when combined with FORCE_BUILD_VENDOR_PKG.

Additionally, the double find_package calls can result in strange behavior if both calls create or modify targets, as targets created by the first call will be present when the second call tries to create them.

  • Linux Build Status
  • Linux (forced vendor) Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

The existing behavior is to always prefer the system's assimp package if
it is sufficient, even if the vendored assimp package is present. This
is very confusing behavior when combined with FORCE_BUILD_VENDOR_PKG.

Additionally, the double find_package calls can result in strange
behavior if both calls deal create or modify targets, as targets created
by the first call will be present when the second call tries to create
them.

Signed-off-by: Scott K Logan <logans@cottsay.net>
@cottsay cottsay added the bug Something isn't working label Apr 14, 2023
@cottsay cottsay requested a review from ahcorde as a code owner April 14, 2023 23:03
@cottsay cottsay self-assigned this Apr 14, 2023
@cottsay cottsay mentioned this pull request Apr 14, 2023
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

I think we should improve the comments here, but I'm approving anyway because it is a minor change.

rviz_assimp_vendor/rviz_assimp_vendor-extras.cmake.in Outdated Show resolved Hide resolved
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
@cottsay
Copy link
Member Author

cottsay commented Apr 18, 2023

@ros-pull-request-builder retest this

@cottsay cottsay merged commit 2c2a461 into rolling Apr 18, 2023
@delete-merged-branch delete-merged-branch bot deleted the cottsay/prefer_vendored_assimp branch April 18, 2023 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants