Skip to content

Commit 8ac9957

Browse files
authored
Added C++11 flags for MOVEIT_MASTER check (#129)
1 parent 7cda8e3 commit 8ac9957

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

capabilities/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ catkin_package(
2222
# check for MOVEIT_MASTER
2323
include(CheckIncludeFileCXX)
2424
set(CMAKE_REQUIRED_INCLUDES ${moveit_core_INCLUDE_DIRS})
25+
set(CMAKE_REQUIRED_FLAGS "-std=c++11")
2526
CHECK_INCLUDE_FILE_CXX(moveit/collision_detection/collision_env.h MOVEIT_MASTER)
2627
if(NOT MOVEIT_MASTER)
2728
set(MOVEIT_MASTER 0)

core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ endif ()
3636
# check for MOVEIT_MASTER
3737
include(CheckIncludeFileCXX)
3838
set(CMAKE_REQUIRED_INCLUDES ${moveit_core_INCLUDE_DIRS})
39+
set(CMAKE_REQUIRED_FLAGS "-std=c++11")
3940
CHECK_INCLUDE_FILE_CXX(moveit/collision_detection/collision_env.h MOVEIT_MASTER)
4041
if(NOT MOVEIT_MASTER)
4142
set(MOVEIT_MASTER 0)

0 commit comments

Comments
 (0)