Skip to content

Avoid linking to uninstalled TARGET_OBJECTS - #5157

Merged
eisenhauer merged 1 commit into
ornladios:masterfrom
kmorel:avoid-target-object-install
Aug 21, 2026
Merged

Avoid linking to uninstalled TARGET_OBJECTS#5157
eisenhauer merged 1 commit into
ornladios:masterfrom
kmorel:avoid-target-object-install

Conversation

@kmorel

@kmorel kmorel commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

As reported in #5105, the KWSys third-party module was installing a target with files in the INTERFACE_SOURCES property that were not installed. Even though this target was never used, CMake was failing simply because the target with a bad property existed.

This change modifies how the KWSys module is used. Rather than split objects from the interface, the module creates a single adios2sys target and avoids adding target objects.

Fixes #5105

As reported in ornladios#5105, the
KWSys third-party module was installing a target with files in the
`INTERFACE_SOURCES` property that were not installed. Even though this
target was never used, CMake was failing simply because the target with
a bad property existed.

This change modifies how the KWSys module is used. Rather than split
objects from the interface, the module creates a single `adios2sys`
target and avoids adding target objects.

Fixes ornladios#5105
@kmorel
kmorel requested a review from a team as a code owner August 21, 2026 15:20
@kmorel

kmorel commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

@mathstuf Is this what you had in mind to fix #5105?

@mathstuf mathstuf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assuming CI is happy, yes, this looks like the resolution.

@kmorel

kmorel commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

@vicentebolea Can you review and merge this PR (assuming everything is good)?

@vicentebolea vicentebolea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@eisenhauer
eisenhauer merged commit ecf587c into ornladios:master Aug 21, 2026
48 checks passed
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.

Installed library targets are linked with TARGET_OBJECTS that are not installed

4 participants