Skip to content

Commit

Permalink
Fix compilation error on Ubuntu 18.04 (ROS Melodic)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoki Mizuno committed Dec 8, 2018
1 parent a4c364a commit f4e1f50
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 f4e1f50

Please sign in to comment.