Important: Please read the Qt Code of Conduct -

Improper target for subproject with dependency

  • Hello. I have a subdirs project:

    TEMPLATE = subdirs
    SUBDIRS += \
        app \
    app.depends = lib
    lib.CONFIG += no_docs_target

    There is QMAKE_EXTRA_TARGETS += docs in app project, but no docs in lib project.
    When I try to "make docs", I get an error:
    "No rule to make target 'sub-lib-docs', needed by 'sub-app-docs'. Stop."
    because the Makefile contain such text:

    sub-app-docs: sub-lib-docs
    	@if not exist app\ mkdir...
    docs: sub-app-docs

    and nothing else about sub-lib-docs.
    I can try to fix it with CONFIG += ordered, but I don't think, that it is a great idea.

Log in to reply