Skip to content

Commit

Permalink
rework how we set the C++ standard
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeferguson committed Aug 23, 2018
1 parent 23518fb commit 9c198a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.1)
project(sparse_bundle_adjustment)

add_compile_options(-std=c++11)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
endif()

find_package(catkin REQUIRED)
find_package(Eigen3 REQUIRED)
Expand Down

0 comments on commit 9c198a1

Please sign in to comment.