Skip to content

Commit

Permalink
Use approach from #1434
Browse files Browse the repository at this point in the history
  • Loading branch information
scpeters committed Aug 30, 2020
1 parent 5a74f90 commit fc749f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
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
1 change: 0 additions & 1 deletion cmake/DARTFindBullet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
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 fc749f6

Please sign in to comment.