mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Fixed #637 (bug introduced by this commit https://github.com/introlab/rtabmap_ros/commit/31da18478308689fdecfdab58c8505c558d61777 for kinetic)
This commit is contained in:
+8
-2
@@ -47,11 +47,17 @@ add_compile_options(-bigobj)
|
||||
ENDIF(WIN32)
|
||||
|
||||
# kinetic issue, rtabmap now requires at least c++11
|
||||
if("$ENV{ROS_DISTRO}" STREQUAL "kinetic")
|
||||
include(CheckCXXCompilerFlag)
|
||||
CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)
|
||||
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
|
||||
IF(COMPILER_SUPPORTS_CXX11)
|
||||
IF(COMPILER_SUPPORTS_CXX14)
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
ELSEIF(COMPILER_SUPPORTS_CXX11)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
ENDIF(COMPILER_SUPPORTS_CXX11)
|
||||
ENDIF()
|
||||
endif()
|
||||
|
||||
|
||||
option(RTABMAP_SYNC_MULTI_RGBD "Build with multi RGBD camera synchronization support" OFF)
|
||||
option(RTABMAP_SYNC_USER_DATA "Build with input user data support" OFF)
|
||||
|
||||
Reference in New Issue
Block a user