[Interest] Pre-compile system

Mathieu Slabbinck matty.slabbinck at gmail.com
Tue Feb 24 20:40:29 CET 2015


On Tue, Feb 24, 2015 at 9:12 AM, Ola Røer Thorsen <ola at silentwings.no> wrote:
>
>
> 2015-02-24 8:51 GMT+01:00 Mathieu Slabbinck <matty.slabbinck at gmail.com>:
>>
>>
>> So my question here: how can I make a qt project that compiles libx
>> before starting on the app itself, disregarding multiple jobs.
>>
>
> Hi, I think doing something like this in your subdir project file will help:
>
> TEMPLATE = subdirs
> SUBDIRS = SomeLibrary TheApplication
> TheApplication.depends = SomeLibrary
>
> This will make sure that TheApplication is built after SomeLibrary, also
> with -j4.
>
> Best regards,
> Ola
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>

Thanks for the clues. I've found some additional issues regarding my
project structure which caused the problem.
I had a toplevel project that already contained cpp & h files to
compile. This probably resulted in the parallel jobs which shouldn't
happen.
Thanks for helping out!

Kr



More information about the Interest mailing list