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:
@@ -2,6 +2,7 @@
|
||||
|
||||
#--- generate necessary dictionaries ------------------------------------------
|
||||
set(MUSRFIT_INC ${CMAKE_SOURCE_DIR}/src/include)
|
||||
set(PREFIX_INC ${CMAKE_INSTALL_PREFIX}/include)
|
||||
|
||||
root_generate_dictionary(
|
||||
PPhotoMeissnerDict
|
||||
@@ -10,16 +11,20 @@ root_generate_dictionary(
|
||||
-I${ROOT_INCLUDE_DIRS}
|
||||
-I${MUSRFIT_INC}
|
||||
-I${CMAKE_CURRENT_SOURCE_DIR}/../include
|
||||
-I${PREFIX_INC}
|
||||
PPhotoMeissner.h
|
||||
LINKDEF ${CMAKE_CURRENT_SOURCE_DIR}/../include/PPhotoMeissnerLinkDef.h
|
||||
OPTIONS -inlineInputHeader
|
||||
MODULE PPhotoMeissner
|
||||
)
|
||||
root_generate_dictionary(
|
||||
PStartupHandler_PMDict
|
||||
-I${MUSRFIT_INC}
|
||||
-I${CMAKE_CURRENT_SOURCE_DIR}/../include
|
||||
-I${PREFIX_INC}
|
||||
PStartupHandler_PM.h
|
||||
LINKDEF ${CMAKE_CURRENT_SOURCE_DIR}/../include/PStartupHandler_PMLinkDef.h
|
||||
OPTIONS -inlineInputHeader
|
||||
MODULE PStartupHandler_PM
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user