Skip to content

Commit 254adc2

Browse files
committed
py: Build in C++17 mode on MSVC
Abseil isn't compatible with C++20 (yet). abseil/abseil-cpp#705
1 parent 8e3a6cd commit 254adc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if(CCACHE_BIN)
2727
endif()
2828

2929
if (MSVC)
30-
set(PYBIND11_CPP_STANDARD /std:c++latest)
30+
set(PYBIND11_CPP_STANDARD /std:c++17)
3131
else()
3232
set(PYBIND11_CPP_STANDARD -std=c++17)
3333
endif()

0 commit comments

Comments
 (0)