Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Improper target for subproject with dependency

Improper target for subproject with dependency

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 320 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brocan
    wrote on last edited by Brocan
    #1

    Hello. I have a subdirs project:

    TEMPLATE = subdirs
    
    SUBDIRS += \
        app \
        lib
    app.depends = lib
    lib.CONFIG += no_docs_target
    
    prepareRecursiveTarget(docs)
    QMAKE_EXTRA_TARGETS += docs
    

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved