Commit c3b152c7 authored by Corentin Le Molgat's avatar Corentin Le Molgat

CMake: Update CXX Standard management

parent 8417871a
# Minimum CMake required # Minimum CMake required
cmake_minimum_required(VERSION 2.8.12) cmake_minimum_required(VERSION 3.1.3)
if(protobuf_VERBOSE) if(protobuf_VERBOSE)
message(STATUS "Protocol Buffers Configuring...") message(STATUS "Protocol Buffers Configuring...")
...@@ -15,8 +15,10 @@ endif() ...@@ -15,8 +15,10 @@ endif()
# Project # Project
project(protobuf C CXX) project(protobuf C CXX)
# Add c++11 flags for clang # Add c++11 flags
set(CMAKE_CXX_FLAGS "-std=c++11") set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Options # Options
option(protobuf_BUILD_TESTS "Build tests" ON) option(protobuf_BUILD_TESTS "Build tests" ON)
......
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