Skip to content
Snippets Groups Projects
Commit e52af7f7 authored by Andre Sailer's avatar Andre Sailer
Browse files

CMake: add_dd4hep_dictionary: try to ensure we recreate the dictionary when any input changes

I hope this will work fine. If the list of headers or linkdefs changes, then cmake should re-run anyway and that will call the file(Generate) to recreate the script, and if only the file content of headers or linkdefs changes, we only have to re-run the shell script.
parent 8eb45be9
No related branches found
No related tags found
No related merge requests found
......@@ -608,7 +608,7 @@ function(dd4hep_add_dictionary dictionary )
)
add_custom_command(OUTPUT ${dictionary}.cxx ${output_dir}/${dictionary}_rdict.pcm
COMMAND /bin/sh fixed_create_${dictionary}_$<CONFIG>CXX.sh
DEPENDS fixed_create_${dictionary}_$<CONFIG>CXX.sh
DEPENDS fixed_create_${dictionary}_$<CONFIG>CXX.sh ${headers} ${linkdefs}
)
else()
add_custom_command(OUTPUT ${dictionary}.cxx ${output_dir}/${dictionary}_rdict.pcm
......
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