Closed tmadlener closed 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)
Very nice, I wasn't aware of that. Thanks :)
BEGINRELEASENOTES
utils
(currently INTERFACE only) target appears asedm4hepUtils
"on disk" in order to avoid having on overly genericlibutils.so
once it actually becomes a shared library.ENDRELEASENOTES
This is a small side-effect that can easily be split off from #268