diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-04-07 23:54:41 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-04-19 07:10:01 +0000 |
commit | 9969d6cbd5e9899245f7e8279989a090437f5c77 (patch) | |
tree | 5c0a2afe32a7ac1b9eb20f916d628e35ab951778 /qbs-resources | |
parent | e31446f563ec8fb1f23e073a97017a5661fbede9 (diff) |
Disable "insecure" warnings on qbs build with MSVC
Task-number: QBS-957
Change-Id: I2b5c8391e9dac90dd513e506548f356abfe9059e
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'qbs-resources')
-rw-r--r-- | qbs-resources/imports/QbsProduct.qbs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qbs-resources/imports/QbsProduct.qbs b/qbs-resources/imports/QbsProduct.qbs index 094013f61..8ffcbfbd2 100644 --- a/qbs-resources/imports/QbsProduct.qbs +++ b/qbs-resources/imports/QbsProduct.qbs @@ -4,6 +4,11 @@ import QbsFunctions Product { Depends { name: "Qt.core" } property string minimumQtVersion: "5.1.0" - cpp.defines: ["QT_NO_CAST_FROM_ASCII", "QT_NO_PROCESS_COMBINED_ARGUMENT_START"] + cpp.defines: { + var res = ["QT_NO_CAST_FROM_ASCII", "QT_NO_PROCESS_COMBINED_ARGUMENT_START"]; + if (qbs.toolchain.contains("msvc")) + res.push("_SCL_SECURE_NO_WARNINGS"); + return res; + } condition: QbsFunctions.versionIsAtLeast(Qt.core.version, minimumQtVersion) } |