mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[cmake] C++ version should not be mandated by the toolchain setting, as it conflicts with Windows (CI) builds using vcpkg
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
# Require C++17.
|
||||
set(CMAKE_CXX_STANDARD 17) # This requires at least CMake 3.8 to accept this C++17 flag.
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
if(NOT CMAKE_TOOLCHAIN_FILE)
|
||||
# Use default toolchain file if none is provided.
|
||||
set(
|
||||
|
||||
Reference in New Issue
Block a user