mirror of
https://github.com/MAPIRlab/rf2o_laser_odometry.git
synced 2023-04-06 19:28:55 +08:00
- Updated CmakeList to comply with GCC 17 (required for the lattest version of MRPT)
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
cmake_minimum_required(VERSION 2.8.3)
|
PROJECT(rf2o_laser_odometry)
|
||||||
project(rf2o_laser_odometry)
|
|
||||||
set (CMAKE_CXX_STANDARD 14) # Require C++14
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.3)
|
||||||
|
# Require C++17
|
||||||
|
|
||||||
|
if(${CMAKE_VERSION} VERSION_LESS "3.8.0")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
|
||||||
|
else()
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
endif()
|
||||||
|
|
||||||
## Find catkin macros and libraries
|
## Find catkin macros and libraries
|
||||||
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
|
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
|
||||||
|
|||||||
Reference in New Issue
Block a user