Important: Please read the Qt Code of Conduct -

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:

        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

    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:


    Awesome, that worked. Thank you!

Log in to reply