Skip to content

Commit 24cceaa

Browse files
committed
BUild in C++17
1 parent 40c489b commit 24cceaa

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,7 @@ include(CheckCXXCompilerFlag)
2929

3030
string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
3131

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")
4233

4334
if(MSVC)
4435
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /MP /bigobj")

0 commit comments

Comments
 (0)