Skip to content

Commit

Permalink
Support IN_LIST operator in DARTConfig.cmake (6.9 backport) (#1494)
Browse files Browse the repository at this point in the history
* DARTFindBullet: set CMP0057 to new

The IN_LIST keyword in DARTFindBullet caused a configuration
error in gazebo10. Setting CMP0057 to new should prevent
similar problems in downstream packages.

* Use approach from #1434
  • Loading branch information
scpeters authored Aug 30, 2020
1 parent 607f89d commit 0ef9fd3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmake/DARTConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@
# dart - Main target.
# dart-<C> - Target for specific component (e.g., dart-collision-bullet).

# Specify CMake minimum required version
if(NOT CMAKE_MINIMUM_REQUIRED_VERSION)
if(MSVC)
cmake_minimum_required(VERSION 3.8.0)
else()
cmake_minimum_required(VERSION 3.5.1)
endif()
else()
# Support if() IN_LIST operator
if(POLICY CMP0057)
cmake_policy(SET CMP0057 NEW)
endif()
endif()

#===============================================================================
# Helper Function Definitions
#===============================================================================
Expand Down

0 comments on commit 0ef9fd3

Please sign in to comment.