File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
cmake_minimum_required (VERSION 3.4.3 )
10
10
project (xeus-cpp )
11
+
12
+ enable_language (CXX )
13
+ set (CMAKE_CXX_EXTENSIONS NO )
14
+
15
+ set (CMAKE_CXX_STANDARD 17 )
16
+ set (CMAKE_CXX_STANDARD_REQUIRED TRUE )
17
+
11
18
set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake;${CMAKE_MODULE_PATH} " )
12
19
13
20
set (XEUS_CPP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /include )
@@ -107,14 +114,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU"
107
114
if (NOT EMSCRIPTEN )
108
115
add_compile_options (-Wunused-parameter -Wextra -Wreorder )
109
116
endif ()
110
-
111
-
112
- CHECK_CXX_COMPILER_FLAG ("-std=c++17" HAS_CPP_17_FLAG )
113
- if (HAS_CPP_17_FLAG )
114
- add_compile_options (-std=c++17 )
115
- else ()
116
- message (FATAL_ERROR "Unsupported compiler -- xeus requires C++17 support!" )
117
- endif ()
118
117
endif ()
119
118
120
119
if (EMSCRIPTEN )
You can’t perform that action at this time.
0 commit comments