Skip to content

Commit

Permalink
DARTFindBullet: set CMP0057 to new
Browse files Browse the repository at this point in the history
The IN_LIST keyword in DARTFindBullet caused a configuration
error in gazebo10. Setting CMP0057 to new should prevent
similar problems in downstream packages.
  • Loading branch information
scpeters committed Aug 30, 2020
1 parent 607f89d commit 5a74f90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/DARTFindBullet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
if(WIN32 AND "optimized" IN_LIST BULLET_LIBRARIES
AND "debug" IN_LIST BULLET_LIBRARIES)
cmake_parse_arguments(BULLET_INTERFACE_LIBRARIES "" "" "debug;optimized"
Expand Down

0 comments on commit 5a74f90

Please sign in to comment.