Skip to content

Commit c6a0ef8

Browse files
authored
Require C++23 on MSVC
1 parent c6d9e66 commit c6a0ef8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ add_library(cppfront_cpp2util INTERFACE)
5454
add_library(cppfront::cpp2util ALIAS cppfront_cpp2util)
5555
set_target_properties(cppfront_cpp2util PROPERTIES EXPORT_NAME cpp2util)
5656

57-
target_compile_features(cppfront_cpp2util INTERFACE cxx_std_20)
57+
target_compile_features(
58+
cppfront_cpp2util
59+
INTERFACE
60+
$<IF:$<CXX_COMPILER_ID:MSVC>,cxx_std_23,cxx_std_20>
61+
)
5862
target_sources(
5963
cppfront_cpp2util
6064
INTERFACE

0 commit comments

Comments
 (0)