File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 2.8.3)
22project (gazebo_ros_link_attacher)
33
4+ #####################################
5+ ## Check c++11 / c++0x support ######
6+ #####################################
7+ include (CheckCXXCompilerFlag)
8+ CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
9+ CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
10+ if (COMPILER_SUPPORTS_CXX11)
11+ set (CMAKE_CXX_FLAGS "-std=c++11" )
12+ elseif (COMPILER_SUPPORTS_CXX0X)
13+ set (CMAKE_CXX_FLAGS "-std=c++0x" )
14+ else ()
15+ message (FATAL_ERROR "Compiler ${CMAKE_CXX_COMPILER} has no C++11 support." )
16+ endif ()
17+ #####################################
18+
419# Load catkin and all dependencies required for this package
520find_package (catkin REQUIRED COMPONENTS
621 roscpp
You can’t perform that action at this time.
0 commit comments