From 254adc21e3a54e8397d786c2b34dffa3350854e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 13 Jul 2020 19:50:19 +0200 Subject: [PATCH] py: Build in C++17 mode on MSVC Abseil isn't compatible with C++20 (yet). https://github.com/abseil/abseil-cpp/pull/705 --- py/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/CMakeLists.txt b/py/CMakeLists.txt index d79f32a..3ecf13b 100644 --- a/py/CMakeLists.txt +++ b/py/CMakeLists.txt @@ -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()