From 4a61d1e5116c0a8fdf3f8c9858c38f391435bf99 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Thu, 14 Dec 2017 08:13:19 -0700 Subject: [PATCH] Enable C++latest for C++17 Visual Studio builds --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78dfc613..268ee81b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,7 +168,7 @@ else() endif() if(MSVC) - add_definitions(/W4 /w14545 /w34242 /w34254 /w34287 /w44263 /w44265 /w44296 /w44311 /w44826 /we4289 /w14546 /w14547 /w14549 /w14555 /w14619 /w14905 /w14906 /w14928) + add_definitions(/std:c++latest /W4 /w14545 /w34242 /w34254 /w34287 /w44263 /w44265 /w44296 /w44311 /w44826 /we4289 /w14546 /w14547 /w14549 /w14555 /w14619 /w14905 /w14906 /w14928) if (MSVC_VERSION STREQUAL "1800") # VS2013 doesn't have magic statics