[cmake] Switch to built-in handling of C++ standard instead of hardcoding -std=c++17
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Jun 2019 07:11:26 +0000 (07:11 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Jun 2019 07:11:26 +0000 (07:11 +0000)
commit34a5494a0311c8ca39e20da7d76ce9ee92fccda4
treea538af22883d282e0101bbc947424ee2b0f870a2
parent0396416c06f8dcdc634b23ad9eb9e3e7b09b5d63
[cmake] Switch to built-in handling of C++ standard instead of hardcoding -std=c++17
https://bugs.webkit.org/show_bug.cgi?id=199108

Reviewed by Don Olmstead.

Rationale:

1. It provides an abstraction over exact flags of particular compilers -
   we just specify required version of C++ standard
2. External libraries (like Qt used in WPEQt) may require particular C++
   standard or even particular C++ features to be availabe (e.g. Qt
   requires INTERFACE_COMPILE_FEATURES cxx_decltype, which causes cmake
   to add -std=gnu++11 unless proper CXX_STANDARD is defined)

.:

* Source/cmake/OptionsCommon.cmake:
* Source/cmake/OptionsMSVC.cmake:
* Source/cmake/WebKitCompilerFlags.cmake:

Source/WebKit:

* PlatformWPE.cmake: Use project-level default for CXX_STANDARD
property.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
Source/WebKit/ChangeLog
Source/WebKit/PlatformWPE.cmake
Source/cmake/OptionsCommon.cmake
Source/cmake/OptionsMSVC.cmake
Source/cmake/WebKitCompilerFlags.cmake