Skip to content

Commit

Permalink
Find DART with CONFIG, require ign-cmake 2.12
Browse files Browse the repository at this point in the history
On macOS, find_package(DART) will resolve to a find-module
for the Dart programming language. Use CONFIG to ensure
that the DART physics library is found. The CONFIG parameter
was added in igntion-cmake2 2.12.0.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed May 3, 2022
1 parent c8a463b commit 2e4eced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project(ignition-gazebo6 VERSION 6.9.0)
# Find ignition-cmake
#============================================================================
# If you get an error at this line, you need to install ignition-cmake
find_package(ignition-cmake2 2.8.0 REQUIRED)
find_package(ignition-cmake2 2.12.0 REQUIRED)

#============================================================================
# Configure the project
Expand Down
2 changes: 1 addition & 1 deletion test/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ign_build_tests(TYPE INTEGRATION
# For INTEGRATION_physics_system, we need to check what version of DART is
# available so that we can disable tests that are unsupported by the particular
# version of physics engine
ign_find_package(DART)
ign_find_package(DART CONFIG)
if (DART_FOUND)
# Only adding include directories, no need to link against DART to check version
target_include_directories(INTEGRATION_physics_system SYSTEM PRIVATE ${DART_INCLUDE_DIRS})
Expand Down

0 comments on commit 2e4eced

Please sign in to comment.