cmake/cpack root dictionary issue fixed.
In order that package assembly works, the code needs to be relocatble and any hints linking it to the original source need to be absent. The changes here do exactely this. For rootcling the '-inlineInputHeader' option is needed, otherwise the dictionary wants to load the header file from the source destination which of course will fail when installing the package on a machine without the source.
This commit is contained in:
13
src/external/TLemRunHeader/CMakeLists.txt
vendored
13
src/external/TLemRunHeader/CMakeLists.txt
vendored
@@ -1,12 +1,21 @@
|
||||
# -TLemRunHeader library ------------------------------------------------------
|
||||
|
||||
#--- generate necessary dictionaries ------------------------------------------
|
||||
set(TLEMRUNHEADER_INC ${CMAKE_SOURCE_DIR}/src/external/TLemRunHeader)
|
||||
set(PREFIX_INC ${CMAKE_INSTALL_PREFIX}/include)
|
||||
|
||||
root_generate_dictionary(
|
||||
TLemRunHeaderDict TLemRunHeader.h LINKDEF TLemRunHeaderLinkDef.h
|
||||
TLemRunHeaderDict
|
||||
-I${TLEMRUNHEADER_INC} -I${PREFIX_INC} TLemRunHeader.h
|
||||
LINKDEF TLemRunHeaderLinkDef.h
|
||||
OPTIONS -inlineInputHeader
|
||||
MODULE TLemRunHeader
|
||||
)
|
||||
root_generate_dictionary(
|
||||
TLemStatsDict TLemStats.h LINKDEF TLemStatsLinkDef.h
|
||||
TLemStatsDict
|
||||
-I${TLEMRUNHEADER_INC} -I${PREFIX_INC} TLemStats.h
|
||||
LINKDEF TLemStatsLinkDef.h
|
||||
OPTIONS -inlineInputHeader
|
||||
MODULE TLemStats
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user