Skip to content
Snippets Groups Projects

get correct dependencies between headers and generated ROOT dictionaries

Merged Marco Clemencic requested to merge clemenci/Gaudi:GAUDI-1148 into master
+ 122
2
Compare changes
  • Side-by-side
  • Inline
Files
@@ -180,12 +180,18 @@ macro(reflex_generate_dictionary dictionary _headerfile _selectionfile)
add_custom_target(${dictionary}GenDeps)
get_filename_component(GCCXML_home ${GCCXML} PATH)
set(impl_deps)
foreach(hf ${headerfiles})
set(impl_deps ${impl_deps} CXX ${hf})
endforeach()
add_custom_command(
OUTPUT ${gensrcdict} ${rootmapname} ${gensrcclassdef}
COMMAND ${ROOT_genreflex_CMD}
${headerfiles} -o ${gensrcdict} ${gccxmlopts} ${rootmapopts} --select=${selectionfile}
--gccxmlpath=${GCCXML_home} ${ARG_OPTIONS} ${include_dirs} ${definitions}
DEPENDS ${headerfiles} ${selectionfile} ${dictionary}GenDeps)
DEPENDS ${headerfiles} ${selectionfile} ${dictionary}GenDeps
IMPLICIT_DEPENDS ${impl_deps})
# Creating this target at ALL level enables the possibility to generate dictionaries (genreflex step)
# well before the dependent libraries of the dictionary are build
Loading