Enable c++11 support.

This commit is contained in:
Vladimir Golovnev (Glassez) 2015-08-26 20:44:42 +03:00
parent 4642a35de7
commit 12d9898b5d
5 changed files with 16 additions and 1 deletions

View File

@ -10,7 +10,9 @@ exists($$OUT_PWD/../conf.pri) {
}
LIBS += -framework Carbon -framework IOKit
CONFIG += c++11
# C++11 support
lessThan(QT_MAJOR_VERSION, 5): QMAKE_CXXFLAGS += -std=c++11
QT_LANG_PATH = ../dist/qt-translations
DIST_PATH = ../dist/mac

View File

@ -1,3 +1,6 @@
# C++11 support
lessThan(QT_MAJOR_VERSION, 5): QMAKE_CXXFLAGS += -std=c++11
exists(conf.pri) {
# to the conf.pri goes all system dependent stuff
include(conf.pri)

View File

@ -2,6 +2,10 @@
TEMPLATE = app
CONFIG += qt thread silent
# C++11 support
CONFIG += c++11
DEFINES += BOOST_NO_CXX11_RVALUE_REFERENCES
# Windows specific configuration
win32: include(../winconf.pri)

View File

@ -9,6 +9,9 @@ exists($$OUT_PWD/../conf.pri) {
include(conf.pri)
}
# C++11 support
lessThan(QT_MAJOR_VERSION, 5): QMAKE_CXXFLAGS += -std=c++0x
# COMPILATION SPECIFIC
!nogui:dbus {
QT += dbus

View File

@ -1,3 +1,6 @@
# C++11 support
lessThan(QT_MAJOR_VERSION, 5): QMAKE_CXXFLAGS += -std=gnu++11
strace_win{
contains(QMAKE_HOST.arch, x86) {
# i686 arch requires frame pointer preservation