Skip to content

Commit

Permalink
CMake: add_dd4hep_dictionary: try to ensure we recreate the dictionar…
Browse files Browse the repository at this point in the history
…y 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.
  • Loading branch information
andresailer committed Mar 13, 2024
1 parent 8eb45be commit e52af7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/DD4hepBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e52af7f

Please sign in to comment.