Skip to content

Commit aedf5fa

Browse files
seanyenv4hn
authored andcommitted
Use compiler-agnostic CMAKE_CXX_STANDARD
as required by the MoveIt maintainers, enforce strict standard through `CMAKE_CXX_EXTENSIONS OFF`
1 parent c7f7457 commit aedf5fa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
cmake_minimum_required(VERSION 2.8.3)
1+
cmake_minimum_required(VERSION 3.1.3)
22
project(moveit_tutorials)
33

4-
add_compile_options(-std=c++14)
4+
set(CMAKE_CXX_STANDARD 14)
5+
set(CMAKE_CXX_EXTENSIONS OFF)
56

67
find_package(catkin REQUIRED
78
COMPONENTS

0 commit comments

Comments
 (0)