cmake: set required C/C++ standard to 11

Co-authored-by: Jason Rhinelander <jason@imaginary.ca>
This commit is contained in:
selsta 2021-09-15 08:28:24 +02:00
parent a39b1d56c8
commit 4afd9a7a9e
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E
4 changed files with 27 additions and 13 deletions

View file

@ -30,7 +30,10 @@ cmake_minimum_required(VERSION 3.5)
project(easylogging CXX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
monero_enable_coverage()
find_package(Threads)