[Qbs] Failed build the project with QBS 1.22.1

Christian Kandeler christian.kandeler at qt.io
Tue May 3 10:39:46 CEST 2022


On 5/2/22 18:27, Карелин Павел wrote:
> I am using the construct:
>
> Product {
>     name: "SharedLib"
>
>     property var exportIncludePaths: [
>         "./",
>         "./shared",
>     ]
>
>     Export {
>         Depends { name: "cpp" }
>         cpp.includePaths: product.exportIncludePaths
>     }
> }

Just use this as-is, except with exportingProduct in the Export item.


> Export {
>         Depends { name: "cpp" }
>         cpp.includePaths: [exportingProduct.cpp.includePaths]
>     }

I'm not entirely sure, but this might use the merged value, potentially 
pulling in more paths than you want. Using a dedicated property seems 
cleaner.


Christian



More information about the Qbs mailing list