Skip to content

Commit

Permalink
Make C++ standard more explicit (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
JensWehner authored Apr 15, 2021
1 parent 8fa5119 commit 4ad71a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# minimum version of CMake is 3.12
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)

include(CheckCXXCompilerFlag)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF) #...without compiler extensions like gnu++11

#build type
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type specified. Will build Release")
Expand Down

0 comments on commit 4ad71a8

Please sign in to comment.