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

RootNewMacros.cmake doesn't work for dependent projects due to depedency on ROOT's own options

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.16/00, 6.14/08
    • 6.16/00, 6.18/00
    • Build System
    • None
    • Any

    Description

      The file RootUseFile.cmake includes RootNewMacros.cmake, which is supposed to be internal to ROOT and depends on ROOT's own build options to work properly. For example, it depends on explicitlink=ON to actually link any libraries specified as dependencies in ROOT_LINKER_LIBRARY. This is a build option of ROOT that dependent projects most likely won't have, leading to broken library dependencies in CMake. The RootNewMacros.cmake file also pollutes dependent projects with ROOT internal variables and could interfere with other settings (e.g. it unsets CMAKE_VERBOSE_MAKEFILES, and CMAKE_INCLUDE_CURRENT_DIR, which could break user projects).

      Attachments

        Activity

          People

            amadio Guilherme Amadio
            amadio Guilherme Amadio
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: