diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-05-12 22:05:14 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-05-12 22:05:14 +0300 |
commit | 4f25bb0d6e94801668927dcaa057bf12a4f81b26 (patch) | |
tree | 93dca19719bf7c78c527bc528162dc14ec52cbb1 /CMakeLists.txt | |
parent | ccabb3a9c929c7475cfb7afadcc1cb17ecdf8748 (diff) |
Require C++ 11 CMAKE
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index aaa5431..4fcbb4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,9 @@ cmake_minimum_required (VERSION "3.16") # You can tweak some common (for all subprojects) stuff here. For example: project(Build C CXX) -# Use C++ 11 +# Use and require C++ 11 set (CMAKE_CXX_STANDARD 11) +set(CXX_STANDARD_REQUIRED) set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) set(CMAKE_DISABLE_SOURCE_CHANGES ON) |