Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10541

CMake should not declare imported components if not requested

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 6.18/04
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Development:

      Description

      Some Linux distributions (i.e. Fedora) package ROOT into multiple packages. If one does not have all packages installed this results in lots of CMake warnings like:

      CMake Warning at /usr/share/root/cmake/ROOTConfig-targets.cmake:1257 (message):
        The imported target "ROOT::hist2workspace" references the file     "/usr/bin/hist2workspace"  but this file does not exist.  If this target is used you need to install
        the package that provides this file     dnf install /usr/bin/hist2workspace  If this target is not used this warning can be ignored 

      It would be nice if ROOT actually only declared targets if requested. In this case users will not get warnings about missing files if they don't really need them.

        Attachments

          Activity

            People

            Assignee:
            oshadura Oksana Shadura
            Reporter:
            tadej Tadej Novak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: