Skip to content

Commit 52ec801

Browse files
committed
Build with c++26 on windows
1 parent c5e98a6 commit 52ec801

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,12 @@ set(DISABLE_PCH CACHE BOOL "Disable precompiled headers as this may break certai
100100
set(BUILD_TESTING CACHE BOOL "Build unit tests")
101101

102102
# Build with C++ 17 on Linux for maximum compatibility with older system
103-
# but for Windows, enable C++ 20 to bypass a deprecation warning
103+
# but for Windows, enable C++ 26 to bypass a deprecation warning
104104
# (workaround for https://github.com/KhronosGroup/Vulkan-Hpp/issues/2034)
105105
# even though we do not yet use any C++ 20 features in our codebase
106+
# also catch2 now wants to build with c++26 on windows clang?
106107
if(WIN32)
107-
set(CMAKE_CXX_STANDARD 20)
108+
set(CMAKE_CXX_STANDARD 26)
108109
else()
109110
set(CMAKE_CXX_STANDARD 17)
110111
endif()

0 commit comments

Comments
 (0)