[QBS] Issue in interpretation of buildDirectory while to last QBS version

Jake Petroules jake.petroules at petroules.com
Sun Sep 6 22:53:48 CEST 2015


> On Sep 6, 2015, at 1:35 PM, olivier musse <olivier.musse at sfr.fr> wrote:
> 
> Hi,
> 
> I upgraded to last QCreator version 3.5.0 from previous 3.4.2 and some of my projects no more compile.
> I found the issue:
> In some static libraries, I used to export cpp.includepath like that:
> Export{
>         cpp.includePaths: [buildDirectory+"/GeneratedFiles"]
>     }
> 
> So that all application depending on this library has the GeneratedFiles of the library as a include path. 
> In previous QBS version, buildDirectory seems interpreted in Export so that it is replaced with the library buildDirectory => the application compiled well
> In last QBS version, buildDirectory seems interpreted in the application so that it is replaced with the application buildDirectory => the application does not compiled. 
> 
> I found a work around forcing buildDirectory to be interpreted in Library by using an intermediate property. 
> property string generFiles:buildDirectory+"/GeneratedFiles"
>     Export{
>         cpp.includePaths: [product.generFiles]
>     }
>  
> Does this change in behavior is normal? 
> If yes, is there any solution better than the work around I found?
> 
> Many thanks in advance for help. 
> 
> 
> Regards
> 
> Olivier
> 
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs


In Export you'll want to use product.buildDirectory now.
-- 
Jake Petroules - jake.petroules at petroules.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150906/f94e4962/attachment.html>


More information about the Qbs mailing list