Commit adc75b72 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] require C++11

parent c55d498c
Pipeline #7201 failed with stage
in 2 minutes and 3 seconds
......@@ -5,6 +5,7 @@
cmake_minimum_required(VERSION 2.8.3)
set(CXX_DISABLE_WERROR True)
SET(CMAKE_CXX_STANDARD 11)
set(WARNING_CXX_FLAGS "${WARNING_CXX_FLAGS} -Werror=format-security")
set(PROJECT_NAMESPACE stack-of-tasks)
......@@ -17,7 +18,8 @@ include(cmake/ros.cmake)
include(cmake/GNUInstallDirs.cmake)
include(cmake/python.cmake)
project(roscontrol_sot)
CMAKE_POLICY(SET CMP0048 OLD)
project(roscontrol_sot CXX)
find_package(PkgConfig REQUIRED)
......@@ -50,9 +52,6 @@ include_directories(include tests ${bullet_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
link_directories(${bullet_LIBRARY_DIRS})
CMAKE_POLICY(SET CMP0048 OLD)
PROJECT(${PROJECT_NAME} CXX)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_INSTALL_RPATH "${LIBRARY_OUTPUT_PATH}")
......
Subproject commit 046c3be5553c4ea340eb672d0289627f0c07b1a4
Subproject commit 52fd089803657a9deab13c9af66581a2da5724f0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment