Skip to content

Commit 269bd87

Browse files
committed
winrt: build with c++20 by default
1 parent e60ac14 commit 269bd87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wrappers/winrt/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ set (CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release" CACHE STRING "" FORCE)
1515
set (WINRT ON)
1616
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /INCREMENTAL:NO" )
1717

18+
if (NOT DEFINED CMAKE_CXX_STANDARD)
19+
set (CMAKE_CXX_STANDARD 20)
20+
# Allow the fallback to earlier versions if the compiler does not support it.
21+
set(CMAKE_CXX_STANDARD_REQUIRED OFF)
22+
endif()
23+
1824
add_definitions (-DUNICODE -D_UNICODE)
1925

2026
if (MSVC)

0 commit comments

Comments
 (0)