Skip to content

Commit

Permalink
Merge pull request laboshinl#105 from naoki-mizuno/c++14
Browse files Browse the repository at this point in the history
Fix compilation error on Ubuntu 18.04 (ROS Melodic)
  • Loading branch information
laboshinl authored Dec 19, 2018
2 parents b30bf46 + f4e1f50 commit 0caee62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.1.3)
project(loam_velodyne)

find_package(catkin REQUIRED COMPONENTS
Expand Down Expand Up @@ -29,7 +29,8 @@ catkin_package(

## Compile as C++14, supported in ROS Kinetic and newer
# set_property(TARGET invz_player PROPERTY CXX_STANDARD 17)
add_compile_options(-std=c++14)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_definitions( -march=native )

Expand Down

0 comments on commit 0caee62

Please sign in to comment.