Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give the utils target a more discernible output name #295

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

tmadlener
Copy link
Contributor

@tmadlener tmadlener commented Apr 12, 2024

BEGINRELEASENOTES

  • Make sure that the utils (currently INTERFACE only) target appears as edm4hepUtils "on disk" in order to avoid having on overly generic libutils.so once it actually becomes a shared library.

ENDRELEASENOTES

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

@m-fila
Copy link
Contributor

m-fila commented Apr 18, 2024

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
Copy link
Contributor Author

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

cmake/EDM4HEPConfig.cmake.in Outdated Show resolved Hide resolved
utils/CMakeLists.txt Show resolved Hide resolved
@tmadlener tmadlener changed the title Rename utils library to avoid an overly generic libutils.so Give the utils target a more discernible output name Apr 18, 2024
Copy link
Member

@jmcarcell jmcarcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, no issues downstream

@tmadlener tmadlener merged commit dd2b2f4 into key4hep:main Apr 19, 2024
9 of 13 checks passed
@tmadlener tmadlener deleted the better-target-name branch April 19, 2024 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants