Skip to content

Commit

Permalink
py: Build in C++17 mode on MSVC
Browse files Browse the repository at this point in the history
Abseil isn't compatible with C++20 (yet).

abseil/abseil-cpp#705
  • Loading branch information
leoetlino committed Jul 13, 2020
1 parent 8e3a6cd commit 254adc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if(CCACHE_BIN)
endif()

if (MSVC)
set(PYBIND11_CPP_STANDARD /std:c++latest)
set(PYBIND11_CPP_STANDARD /std:c++17)
else()
set(PYBIND11_CPP_STANDARD -std=c++17)
endif()
Expand Down

0 comments on commit 254adc2

Please sign in to comment.