Skip to content

ROOT_GENERATE_DICTIONARY needs to be updated to use DEPFILE instead of IMPLICIT_DEPENDS with add_custom_command #21203

Description

@pcanal

IMPLICIT_DEPENDS is only supported in CMake for the Unix Makefiles generator and is (essentially) broken even there (technically the target is not supported to be used/seen by any other sub-directories). See recommendation given at https://discourse.cmake.org/t/add-custom-custom-multiple-output-and-multiple-directories/15474/2

The downside is that rootcling (or an additional step) needs to produce this dependency file explicitly.

This would be a solution to #20907

See the relevant/related reports/discussions of the underlying CMake limitations:

https://discourse.cmake.org/t/add-custom-custom-multiple-output-and-multiple-directories/15474
https://gitlab.kitware.com/cmake/cmake/-/issues/27521
https://github.com/pcanal/cmake_custom_command

Activity

  1. added theissue type on Feb 9, 2026
  2. DhanashreePetare commented on Feb 18, 2026

    @DhanashreePetare

    Greetings @pcanal, I am interested to work on the issue, if its still available, can this issue be assigned to me. ThankYou

  3. pcanal commented on Feb 18, 2026

    @pcanal
    MemberAuthor

    Yes, this issue is available.

  4. DhanashreePetare commented on Feb 18, 2026

    @DhanashreePetare

    Okay @pcanal, I will get back with the PR for the same shortly.

  5. DhanashreePetare commented on Feb 22, 2026

    @DhanashreePetare

    @pcanal Tried resolving the issue, please have a look and let me know about any further chnages.

  6. added 2 commits that reference this issue on Jul 29, 2026
    1812c7b
    ae4d830
  7. hahnjo commented on Aug 4, 2026

    @hahnjo
    Member

    Reopen after revert; see #23009 for details

  8. reopened this on Aug 4, 2026
  9. added 3 commits that reference this issue on Aug 4, 2026
    014ceba
    ec99f0d
    14bd786
  10. added 2 commits that reference this issue on Aug 31, 2026
    4187d0c
    a360143
  11. github-actions commented on Sep 1, 2026

    @github-actions

    Hi @guitargeek, @dpiparo,

    It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

    Sincerely,
    🤖

  12. added a commit that references this issue on Sep 1, 2026
    d1bdbe7
  13. added 2 commits that reference this issue on Oct 16, 2026
    1044ff0
    d151174
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions