Fork me on GitHub

Changeset 0feae05 in git for classes


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
  • classes/CMakeLists.txt

    r49dc761 r0feae05  
    99list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ClassesLinkDef.h)
    1010
    11 DELPHES_GENERATE_DICTIONARY(ClassesDict
    12   classes/DelphesModule.h
    13   classes/DelphesFactory.h
    14   classes/SortableObject.h
    15   classes/DelphesClasses.h
    16   LINKDEF ClassesLinkDef.h
    17 )
     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(ClassesDict
     14    classes/DelphesModule.h
     15    classes/DelphesFactory.h
     16    classes/SortableObject.h
     17    classes/DelphesClasses.h
     18    LINKDEF ClassesLinkDef.h
     19  )
     20else()
     21  # for ROOT5 the above fails, keep the following as workaround
     22  DELPHES_GENERATE_DICTIONARY(ClassesDict
     23  ${CMAKE_CURRENT_SOURCE_DIR}/DelphesModule.h
     24  ${CMAKE_CURRENT_SOURCE_DIR}/DelphesFactory.h
     25  ${CMAKE_CURRENT_SOURCE_DIR}/SortableObject.h
     26  ${CMAKE_CURRENT_SOURCE_DIR}/DelphesClasses.h
     27    LINKDEF ClassesLinkDef.h
     28  )
     29endif()
    1830
    1931add_library(classes OBJECT ${sources} ClassesDict.cxx)
Note: See TracChangeset for help on using the changeset viewer.