CMake: Build ClickHouse w/o GNU extensions

This commit is contained in:
Robert Schulze 2023-03-16 15:02:52 +00:00
parent a3510a2ffe
commit 22d496e8e6
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -302,11 +302,11 @@ if (ENABLE_BUILD_PROFILING)
endif ()
set (CMAKE_CXX_STANDARD 23)
set (CMAKE_CXX_EXTENSIONS ON) # Same as gnu++2a (ON) vs c++2a (OFF): https://cmake.org/cmake/help/latest/prop_tgt/CXX_EXTENSIONS.html
set (CMAKE_CXX_EXTENSIONS OFF)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_C_STANDARD 11)
set (CMAKE_C_EXTENSIONS ON)
set (CMAKE_C_EXTENSIONS ON) # required by most contribs written in C
set (CMAKE_C_STANDARD_REQUIRED ON)
if (COMPILER_GCC OR COMPILER_CLANG)