From 7ca80078e4b95aa95e3f10e4f8ed5d39e82e8cae Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Mon, 25 Oct 2021 14:40:53 -0500 Subject: [PATCH] Fix detection of ContactSurface.hh in macOS Signed-off-by: Addisu Z. Taddese --- dartsim/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dartsim/CMakeLists.txt b/dartsim/CMakeLists.txt index b477a6b9c..59396ab58 100644 --- a/dartsim/CMakeLists.txt +++ b/dartsim/CMakeLists.txt @@ -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)