From 03176b505c12e0a7a5a06961368e6d1794ce393b Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 15 Jul 2022 14:31:11 +0300 Subject: [PATCH] cmake: Switch to C++17 language standard (see issue #3362) --- cmake/cef_variables.cmake.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake/cef_variables.cmake.in b/cmake/cef_variables.cmake.in index 645a34cee..03f733496 100644 --- a/cmake/cef_variables.cmake.in +++ b/cmake/cef_variables.cmake.in @@ -105,7 +105,7 @@ if(OS_LINUX) -fno-rtti # Disable real-time type information -fno-threadsafe-statics # Don't generate thread-safe statics -fvisibility-inlines-hidden # Give hidden visibility to inlined class member functions - -std=c++14 # Use the C++14 language standard + -std=c++17 # Use the C++17 language standard -Wsign-compare # Warn about mixed signed/unsigned type comparisons ) list(APPEND CEF_COMPILER_FLAGS_DEBUG @@ -276,7 +276,7 @@ if(OS_MAC) -fno-threadsafe-statics # Don't generate thread-safe statics -fobjc-call-cxx-cdtors # Call the constructor/destructor of C++ instance variables in ObjC objects -fvisibility-inlines-hidden # Give hidden visibility to inlined class member functions - -std=c++14 # Use the C++14 language standard + -std=c++17 # Use the C++17 language standard -Wno-narrowing # Don't warn about type narrowing -Wsign-compare # Warn about mixed signed/unsigned type comparisons ) @@ -426,6 +426,9 @@ if(OS_WINDOWS) /Ob2 # Inline any suitable function /GF # Enable string pooling ) + list(APPEND CEF_CXX_COMPILER_FLAGS + /std:c++17 # Use the C++17 language standard + ) list(APPEND CEF_LINKER_FLAGS_DEBUG /DEBUG # Generate debug information )