-
Notifications
You must be signed in to change notification settings - Fork 285
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
Support IN_LIST operator in DARTConfig.cmake (6.9 backport) #1494
Conversation
The IN_LIST keyword in DARTFindBullet caused a configuration error in gazebo10. Setting CMP0057 to new should prevent similar problems in downstream packages.
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.
Oops, this was fixed in master (see #1434). Maybe we should apply the fix to 6.9 (probably 6.9.4) as well.
cmake/DARTFindBullet.cmake
Outdated
@@ -12,6 +12,7 @@ | |||
find_package(Bullet COMPONENTS BulletMath BulletCollision MODULE QUIET) | |||
|
|||
if((BULLET_FOUND OR Bullet_FOUND) AND NOT TARGET Bullet) | |||
cmake_policy(SET CMP0057 NEW) |
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.
The error could occur anywhere IN_LIST
is used. Also, this policy setting isn't necessary if the required CMake version is set from the parent project (e.g., gazebo). This policy setting isn't required if the required CMake version is set to 3.5.1 or greater. Let's fix this in DARTConfig.cmake.in
like this one.
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.
ok, I'll copy that approach here
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.
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.
Awesome, thanks!
Codecov Report
@@ Coverage Diff @@
## release-6.9 #1494 +/- ##
===============================================
+ Coverage 57.02% 57.03% +0.01%
===============================================
Files 366 366
Lines 27147 27147
===============================================
+ Hits 15481 15484 +3
+ Misses 11666 11663 -3
|
In DART 6.9.3, the
IN_LIST
keyword in DARTFindBullet caused a configuration error in gazebo10 (see gazebosim/gazebo-classic#2835). SettingCMP0057
to new should prevent similar problems in downstream packages.Before creating a pull request
clang-format
Before merging a pull request
CHANGELOG.md