Skip to content

Commit

Permalink
Fix detection of ContactSurface.hh in macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Oct 25, 2021
1 parent 5080c40 commit 7ca8007
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dartsim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ target_link_libraries(${dartsim_plugin}
# was added to enable these customizations, to detect if the feature is
# available.
include(CheckIncludeFileCXX)
if (MSVC)
set(CMAKE_REQUIRED_FLAGS "/std:c++14")
else()
set(CMAKE_REQUIRED_FLAGS "-std=c++14")
endif()
set(CMAKE_REQUIRED_INCLUDES "${DART_INCLUDE_DIRS};${EIGEN3_INCLUDE_DIRS}")
set(CMAKE_REQUIRED_QUIET false)

Expand Down

0 comments on commit 7ca8007

Please sign in to comment.