We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 091eb99 commit 57c2bdeCopy full SHA for 57c2bde
CMakeLists.txt
@@ -104,12 +104,11 @@ set(BUILD_TESTING CACHE BOOL "Build unit tests")
104
# (workaround for https://github.com/KhronosGroup/Vulkan-Hpp/issues/2034)
105
# even though we do not yet use any C++ 20 features in our codebase
106
if(WIN32)
107
- #clang wants c++26 for some catch2 stuff
108
- if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND BUILD_TESTING)
109
- add_compile_options(--std=gnu++26)
+ set(CMAKE_CXX_STANDARD 20)
+
+ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
110
+ add_compile_options(-Wno-error=c2y-extensions)
111
else()
- set(CMAKE_CXX_STANDARD 20)
112
- endif()
113
114
set(CMAKE_CXX_STANDARD 17)
115
endif()
0 commit comments