diff options
-rw-r--r-- | src/lib/corelib/language/moduleloader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/corelib/language/moduleloader.cpp b/src/lib/corelib/language/moduleloader.cpp index 0070544d3..60f7d74a0 100644 --- a/src/lib/corelib/language/moduleloader.cpp +++ b/src/lib/corelib/language/moduleloader.cpp @@ -1174,7 +1174,8 @@ void ModuleLoader::copyProperties(const Item *sourceProject, Item *targetProject // We must not inherit built-in properties such as "name", // but there are exceptions. if (it.key() == QLatin1String("qbsSearchPaths") || it.key() == QLatin1String("profile") - || it.key() == QLatin1String("buildDirectory")) { + || it.key() == QLatin1String("buildDirectory") + || it.key() == QLatin1String("sourceDirectory")) { const JSSourceValueConstPtr &v = targetProject->property(it.key()).dynamicCast<const JSSourceValue>(); QBS_ASSERT(v, continue); |