Implement proper C++11 mode detection

Newer compilers have C++14 mode as default and package maintainers tend
to not specifying a C++ version when building a package, this causes
compatibility issues when (for example) qbt is compiled in C++11 and
dependency lib is in C++14. See issue #9485.

What this commit does:
1. Checks if compiler supports at least C++11
2. Checks if compiler is set in at least C++11 mode
This commit is contained in:
Chocobo1
2018-11-08 00:14:10 +08:00
parent 019da6a98c
commit 819a84eb7a
4 changed files with 251 additions and 159 deletions

View File

@@ -2,9 +2,6 @@
TEMPLATE = app
CONFIG += qt thread silent
# C++11 support
CONFIG += c++11
# Platform specific configuration
win32: include(../winconf.pri)
macx: include(../macxconf.pri)