Since Q5.4 available support C++14.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-05-30 18:54:54 +03:00
parent 965d908663
commit 2dcfe1c84b
7 changed files with 55 additions and 14 deletions

View File

@ -18,8 +18,13 @@ TEMPLATE = app
# Use out-of-source builds (shadow builds)
CONFIG -= debug_and_release debug_and_release_target
# We use C++11 standard
CONFIG += c++11
# Since Q5.4 available support C++14
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
CONFIG += c++14
} else {
# We use C++11 standard
CONFIG += c++11
}
# Since Qt 5.4.0 the source code location is recorded only in debug builds.
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.

View File

@ -26,8 +26,13 @@ macx{
# Use out-of-source builds (shadow builds)
CONFIG -= debug_and_release debug_and_release_target
# We use C++11 standard
CONFIG += c++11
# Since Q5.4 available support C++14
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
CONFIG += c++14
} else {
# We use C++11 standard
CONFIG += c++11
}
# Since Qt 5.4.0 the source code location is recorded only in debug builds.
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.

View File

@ -19,8 +19,13 @@ TEMPLATE = lib
# Use out-of-source builds (shadow builds)
CONFIG -= debug_and_release debug_and_release_target
# We use C++11 standard
CONFIG += c++11
# Since Q5.4 available support C++14
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
CONFIG += c++14
} else {
# We use C++11 standard
CONFIG += c++11
}
# Since Qt 5.4.0 the source code location is recorded only in debug builds.
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.

View File

@ -19,8 +19,13 @@ TARGET = vpropertyexplorer
# We want create library
TEMPLATE = lib
# We use C++11 standard
CONFIG += c++11
# Since Q5.4 available support C++14
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
CONFIG += c++14
} else {
# We use C++11 standard
CONFIG += c++11
}
# Since Qt 5.4.0 the source code location is recorded only in debug builds.
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.

View File

@ -18,8 +18,15 @@ TEMPLATE = app
# CONFIG += testcase adds a 'make check' which is great. But by default it also
# adds a 'make install' that installs the test cases, which we do not want.
# Can configure it not to do that with 'no_testcase_installs'
# We use C++11 standard
CONFIG += c++11 testcase no_testcase_installs
CONFIG += testcase no_testcase_installs
# Since Q5.4 available support C++14
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
CONFIG += c++14
} else {
# We use C++11 standard
CONFIG += c++11
}
# Use out-of-source builds (shadow builds)
CONFIG -= app_bundle debug_and_release debug_and_release_target

View File

@ -16,8 +16,15 @@ include(../../../common.pri)
# CONFIG += testcase adds a 'make check' which is great. But by default it also
# adds a 'make install' that installs the test cases, which we do not want.
# Can configure it not to do that with 'no_testcase_installs'
# We use C++11 standard
CONFIG += c++11 testcase no_testcase_installs
CONFIG += testcase no_testcase_installs
# Since Q5.4 available support C++14
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
CONFIG += c++14
} else {
# We use C++11 standard
CONFIG += c++11
}
# Use out-of-source builds (shadow builds)
CONFIG -= app_bundle debug_and_release debug_and_release_target

View File

@ -14,8 +14,15 @@ include(../../../common.pri)
# CONFIG += testcase adds a 'make check' which is great. But by default it also
# adds a 'make install' that installs the test cases, which we do not want.
# Can configure it not to do that with 'no_testcase_installs'
# We use C++11 standard
CONFIG += c++11 testcase no_testcase_installs
CONFIG += testcase no_testcase_installs
# Since Q5.4 available support C++14
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
CONFIG += c++14
} else {
# We use C++11 standard
CONFIG += c++11
}
# Use out-of-source builds (shadow builds)
CONFIG -= app_bundle debug_and_release debug_and_release_target