import qbs
import QbsFunctions

Product {
    Depends { name: "Qt.core" }
    property string minimumQtVersion: "5.1.0"
    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)
}

import qbs
import QbsFunctions

Product {
    Depends { name: "Qt.core" }
    property string minimumQtVersion: "5.1.0"
    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;
    }
    cpp.enableExceptions: true
    condition: QbsFunctions.versionIsAtLeast(Qt.core.version, minimumQtVersion)
}

Enable exceptions in qbs project
Enable exceptions in qbs project

Change-Id: I754280c0b8b02c4693be6936b67f458f1a57ba2b
Reviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@theqtcompany.com>
