diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-02-27 10:09:08 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-03-01 10:17:23 +0000 |
commit | cda1a52338789e91cc3bfcd5784363c5fa9e7ef4 (patch) | |
tree | 6daa6a50f5e949262d5dd3651c0d5d22dfb11a15 /src | |
parent | 779de6dde45e8173eff748dcb311c60c58e4ae60 (diff) | |
download | qbs-cda1a52338789e91cc3bfcd5784363c5fa9e7ef4.tar.gz |
Do not emit warnings for properties set on non-present modules
Either the dependeny is required, in which case there will be an error
anyway, or it is not, in which case it is implied that setting the
property is intended for the success case.
Change-Id: I54269ee62e5aea94b11899846e6b5b1abddd323a
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/corelib/language/moduleloader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/corelib/language/moduleloader.cpp b/src/lib/corelib/language/moduleloader.cpp index 5a789621b..f6c148f21 100644 --- a/src/lib/corelib/language/moduleloader.cpp +++ b/src/lib/corelib/language/moduleloader.cpp @@ -387,6 +387,8 @@ private: // inside Artifact items... || item->type() == ItemType::Module + || (item->type() == ItemType::ModuleInstance && !item->isPresentModule()) + // The Properties child of a SubProject item is not a regular item. || item->type() == ItemType::PropertiesInSubProject) { return; |