We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40c489b commit 24cceaaCopy full SHA for 24cceaa
1 file changed
test/CMakeLists.txt
@@ -29,16 +29,7 @@ include(CheckCXXCompilerFlag)
29
30
string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
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()
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=C++17")
42
43
if(MSVC)
44
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MP /bigobj")
0 commit comments