key4hep / EDM4hep

Generic event data model for HEP collider experiments
https://cern.ch/edm4hep
Apache License 2.0
25 stars 35 forks source link

Give the utils target a more discernible output name #295

Closed tmadlener closed 5 months ago

tmadlener commented 5 months ago

BEGINRELEASENOTES

ENDRELEASENOTES

This is a small side-effect that can easily be split off from #268

m-fila commented 5 months ago

I think it's also possible to keep the name of cmake target and only change the name of its output:

set_target_properties(utils PROPERTIES OUTPUT_NAME "edm4hepUtils")

so the target (assuming it got promoted to a shared library) is known as utils, exported as EDM4HEP::utils and points to libedm4hepUtils.so (without adding alias in Config.cmake)

tmadlener commented 5 months ago

Very nice, I wasn't aware of that. Thanks :)