File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required ( VERSION 2.8.8 )
1
+ cmake_minimum_required ( VERSION 3.1 )
2
2
project ( ProgramOptions )
3
+ set ( CMAKE_CXX_STANDARD 11 )
4
+ set ( CMAKE_CXX_STANDARD_REQUIRED ON )
5
+ set ( CMAKE_CXX_EXTENSIONS OFF )
3
6
4
7
option ( PROGRAMOPTIONS_NO_EXCEPTIONS "disable exceptions" OFF )
5
8
option ( PROGRAMOPTIONS_NO_COLORS "disable colored output" OFF )
@@ -18,7 +21,7 @@ include_directories( "./" )
18
21
include_directories ( "./ext/" )
19
22
20
23
if ( PROGRAMOPTIONS_GNU_OPTIONS )
21
- set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wno-deprecated -std=c++14 - fno-rtti" )
24
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wno-deprecated -fno-rtti" )
22
25
set ( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -ggdb -fno-omit-frame-pointer" )
23
26
set ( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -march=native -DNDEBUG -s -flto" )
24
27
endif ()
You can’t perform that action at this time.
0 commit comments