Skip to content

Commit c6dff97

Browse files
committed
Do not generally override CXX standard.
1 parent ea38ff0 commit c6dff97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/EthToolchains.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Require C++17.
2-
set(CMAKE_CXX_STANDARD 17) # This requires at least CMake 3.8 to accept this C++17 flag.
2+
if (NOT DEFINED CMAKE_CXX_STANDARD)
3+
set(CMAKE_CXX_STANDARD 17) # This requires at least CMake 3.8 to accept this C++17 flag.
4+
endif ()
35
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
46
set(CMAKE_CXX_EXTENSIONS OFF)
57

0 commit comments

Comments
 (0)