-
Notifications
You must be signed in to change notification settings - Fork 284
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
cmake: restore a "exiv2lib" target #2832
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2832 +/- ##
=======================================
Coverage 63.88% 63.88%
=======================================
Files 103 103
Lines 22381 22381
Branches 10873 10873
=======================================
Hits 14297 14297
Misses 5862 5862
Partials 2222 2222 ☔ View full report in Codecov by Sentry. |
65322f3
to
4f6d0b8
Compare
4f6d0b8
to
e793201
Compare
Commit a8c3455 and commit eb05551 changed the target of the exiv2 library ("exiv2lib"), exporting it in the "Exiv2" namespace, so making it usable as "Exiv2::exiv2lib" instead. An ALIAS to "exiv2lib" was added, however cmake does not install or export ALIAS targets [1]. Hence, restore compatibility with the existing cmake users of exiv2: manually create an ALIAS target in the cmake config files after all the targets are loaded and checked. [1] https://cmake.org/cmake/help/latest/command/add_library.html
e793201
to
1d01500
Compare
ping @Ryanf55 |
This is an issue if we lose the original target name; those changes were not intended to be breaking. But, I'm not sure this is the right fix. I can try an alternative fix. The targets are supposed to be generated automatically by the config script Once we get the fix in, It would be prudent to add a test in CI to verify the targets the users expect exist. |
Would be possible to backport this to the |
@Mergifyio backport 0.28.x |
✅ Backports have been created
|
Commit a8c3455 and commit eb05551 changed the target of the exiv2 library (
exiv2lib
), exporting it in theExiv2
namespace, so making it usable asExiv2::exiv2lib
instead. AnALIAS
toexiv2lib
was added, however cmake does not install or exportALIAS
targets [1].Hence, restore compatibility with the existing cmake users of exiv2: manually create an
ALIAS
target in the cmake config files after all the targets are loaded and checked.[1] https://cmake.org/cmake/help/latest/command/add_library.html
Tested with digikam and photoqt, which refer to
exiv2lib
in their cmake build systems.