File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,7 @@ include(CheckCXXCompilerFlag)
29
29
30
30
string (TOUPPER "${CMAKE_BUILD_TYPE} " U_CMAKE_BUILD_TYPE)
31
31
32
- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel" )
33
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wunused-parameter -Wextra -Wreorder -Wconversion -fvisibility=hidden" )
34
- CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
35
-
36
- if (HAS_CPP14_FLAG)
37
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14" )
38
- else ()
39
- message (FATAL_ERROR "Unsupported compiler -- xtensor requires C++14 support!" )
40
- endif ()
41
- endif ()
32
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=C++17" )
42
33
43
34
if (MSVC )
44
35
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MP /bigobj" )
You can’t perform that action at this time.
0 commit comments