Fork me on GitHub

Changeset 0feae05 in git for external/ExRootAnalysis


Ignore:
Timestamp:
Apr 7, 2021, 12:21:32 AM (4 years ago)
Author:
Valentin Volkl <valentin.volkl@…>
Branches:
master
Children:
3cfe61d
Parents:
49dc761
Message:

relocatable headers for dictionaries: workaround for ROOT 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/ExRootAnalysis/CMakeLists.txt

    r49dc761 r0feae05  
    99list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ExRootAnalysisLinkDef.h)
    1010
    11 DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict
    12   ExRootAnalysis/ExRootClassifier.h
    13   ExRootAnalysis/ExRootConfReader.h
    14   ExRootAnalysis/ExRootFilter.h
    15   ExRootAnalysis/ExRootProgressBar.h
    16   ExRootAnalysis/ExRootResult.h
    17   ExRootAnalysis/ExRootTask.h
    18   ExRootAnalysis/ExRootTreeBranch.h
    19   ExRootAnalysis/ExRootTreeReader.h
    20   ExRootAnalysis/ExRootTreeWriter.h
    21   ExRootAnalysis/ExRootUtilities.h
    22   LINKDEF ExRootAnalysisLinkDef.h)
     11# the macro invocation for ROOT6 ensures that the headers are relocatable
     12if (NOT ${ROOT_VERSION} VERSION_LESS "6.0.0")
     13  DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict
     14    ExRootAnalysis/ExRootClassifier.h
     15    ExRootAnalysis/ExRootConfReader.h
     16    ExRootAnalysis/ExRootFilter.h
     17    ExRootAnalysis/ExRootProgressBar.h
     18    ExRootAnalysis/ExRootResult.h
     19    ExRootAnalysis/ExRootTask.h
     20    ExRootAnalysis/ExRootTreeBranch.h
     21    ExRootAnalysis/ExRootTreeReader.h
     22    ExRootAnalysis/ExRootTreeWriter.h
     23    ExRootAnalysis/ExRootUtilities.h
     24    LINKDEF ExRootAnalysisLinkDef.h)
     25else()
     26  # for ROOT5 the above fails, keep the following as workaround
     27  DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysisLinkDef.h)
     28endif()
    2329
    2430add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
Note: See TracChangeset for help on using the changeset viewer.