Get rid of a qmake warning



  • Hello gentlemen,
    here's an extract of my qmake file, where I launch an externale makefile to build a library needed by my project:

    unix{
        libenet.commands = cd $$PWD/src/enet && make -f Makefile
        QMAKE_EXTRA_TARGETS += libenet
        PRE_TARGETDEPS += libenet
    }
    

    Everything works, but I get this annoying warning:

    :-1: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.

    How can I get rid of it? I already tried the trivial things, like adding -j1 to the libenet.commands line, but with no luck.


  • Moderators

    @Illogica
    This issue shows the same problem as you.
    The solution seems to be to substitute "make" with "$(MAKE)" in your qmake pro file



  • @raven-worx said:

    $(MAKE)

    Awesome, that worked. Thank you!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.