Skip to content
Snippets Groups Projects
Commit 0f1a82c3 authored by Administrator's avatar Administrator
Browse files

Fix installation

The header files from subdirectories were expected by ROOT in the wrong
directory structure. Pass the header files without the path  when generating
the dictionary.
parent 18760013
No related branches found
No related tags found
2 merge requests!969Macro to add a library target for CbmRoot:,!967Trasition from old to modern cmake in core dir
Pipeline #19259 passed
......@@ -201,6 +201,12 @@ macro(generate_cbm_library)
endif()
endforeach()
foreach (HEADER ${HEADERS})
# strip relative path from headers to pass them to rootcling
get_filename_component(_rootheader ${HEADER} NAME)
list(APPEND ROOT_HEADERS ${_rootheader})
endforeach()
######################### build the library ############################
add_library(${LIBRARY_NAME} SHARED ${HEADERS} ${SRCS} ${NO_DICT_SRCS} ${LINKDEF})
......@@ -208,7 +214,7 @@ macro(generate_cbm_library)
target_include_directories(${LIBRARY_NAME} PUBLIC ${INCLUDE_DIRECTORIES})
if(LINKDEF)
root_generate_dictionary(G__${LIBRARY_NAME} ${HEADERS} MODULE ${LIBRARY_NAME} LINKDEF ${LINKDEF})
root_generate_dictionary(G__${LIBRARY_NAME} ${ROOT_HEADERS} MODULE ${LIBRARY_NAME} LINKDEF ${LINKDEF})
endif(LINKDEF)
############# Install target and corresponding header files ############
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment