Skip to content

Commit

Permalink
Add support new if() IN_LIST operator in DARTConfig.cmake (#1434)
Browse files Browse the repository at this point in the history
* Set CMP0075 to new to support new if() IN_LIST operator

* Update changelog

* Specify minimum required CMake version in DARTConfig.cmake.in

* Define CMake minimum required version only if not specified

* Set CMP0075 to new for old CMake version setting
  • Loading branch information
jslee02 authored Feb 24, 2020
1 parent 7aa73fe commit df79cde
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
* Replaced M_PI with dart::math::constantsd::pi(): [#1367](https://github.com/dartsim/dart/pull/1367)
* Enabled octomap support on macOS: [#1078](https://github.com/dartsim/dart/pull/1078)
* Removed dependency on Boost::regex: [#1412](https://github.com/dartsim/dart/pull/1412)
* Added support new if() IN_LIST operator in DARTConfig.cmake: [#1434](https://github.com/dartsim/dart/pull/1434)

### [DART 6.9.2 (2019-08-16)](https://github.com/dartsim/dart/milestone/60?closed=1)

Expand Down
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 df79cde

Please sign in to comment.