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

Support building against DCMTK >= 3.6.7 #1224

Merged

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Oct 29, 2024

Introduces two compatibility updates for DCMTK integration:

  1. Explicit QByteArray Conversion for DCMTK Compatibility: Adds an explicit conversion from QByteArray to const char *, preparing for changes in DCMTK's handling of the filename parameter (commit DCMTK/dcmtk@1ebac2d0f).

  2. Support for Namespaced DCMTK CMake Targets: Adapts the build system to support namespaced CMake targets introduced in DCMTK commit DCMTK/dcmtk@c684bb3. The update correctly sets the KIT_target_libraries variable to accommodate the "DCMTK::" prefix in target names.

Related pull requests:

jcfr and others added 2 commits October 29, 2024 01:01
…ompatibility

This change ensures backward compatibility while preparing for future updates to DCMTK,
specifically commit DCMTK/dcmtk@1ebac2d0f ("Replaced the data type of parameter 'filename'.", 2024-02-20).
In this update, the parameter type changes from `const char *` to `const OFFilename`.

QByteArray only provides an explicit conversion to `const char *`, but not directly to
`const OFFilename` (which can be constructed from `const char *`). This explicit conversion
allows seamless integration with both the current and updated DCMTK codebase.
This update maintains backward compatibility while enabling support for DCMTK's
namespaced CMake targets, introduced in commit DCMTK/dcmtk@c684bb3 ("Various enhancements for DCMTK's CMake exports.", 2021-07-05).

In this version, target names are prefixed with "DCMTK::", requiring adjustments
to the build system ensuring the variable KIT_target_libraries is properly
set.

Co-authored-by: James Butler <[email protected]>
Co-authored-by: Stefan Dinkelacker <[email protected]>
@jcfr jcfr changed the title Support building against dcmtk 3.6.8 Support building against DCMTK >= 3.6.7 Oct 29, 2024
@jamesobutler jamesobutler merged commit 82cae57 into commontk:master Oct 29, 2024
7 checks passed
@jcfr jcfr deleted the support-building-against-dcmtk-3.6.8 branch October 29, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants