Skip to content

Commit

Permalink
Fixed CMake for finding whether DART supports contact surface customi…
Browse files Browse the repository at this point in the history
…zation.

Signed-off-by: Martin Pecka <peckama2@fel.cvut.cz>
  • Loading branch information
peci1 committed Oct 24, 2021
1 parent 65397fb commit be31da3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dartsim/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# This component expresses custom features of the dartsim plugin, which can
# expose native dartsim data types.
ign_add_component(dartsim INTERFACE
Expand Down Expand Up @@ -38,8 +37,7 @@ target_link_libraries(${dartsim_plugin}
# was added to enable these customizations, to detect if the feature is
# available.
include(CheckIncludeFileCXX)
set(CMAKE_REQUIRED_INCLUDES ${DART_INCLUDE_DIRS})
set(CMAKE_REQUIRED_DEFINITIONS ${EIGEN3_INCLUDE_DIRS})
set(CMAKE_REQUIRED_INCLUDES "${DART_INCLUDE_DIRS};${EIGEN3_INCLUDE_DIRS}")
set(CMAKE_REQUIRED_QUIET false)

CHECK_INCLUDE_FILE_CXX(dart/constraint/ContactSurface.hpp DART_HAS_CONTACT_SURFACE_HEADER)
Expand Down

0 comments on commit be31da3

Please sign in to comment.