Skip to content

Skip VERSION/SOVERSION/DEBUG_POSTFIX on the header-only INTERFACE target#4830

Merged
vitaut merged 2 commits into
fmtlib:mainfrom
soumik15630m:fmt-cmake
Jun 28, 2026
Merged

Skip VERSION/SOVERSION/DEBUG_POSTFIX on the header-only INTERFACE target#4830
vitaut merged 2 commits into
fmtlib:mainfrom
soumik15630m:fmt-cmake

Conversation

@soumik15630m

Copy link
Copy Markdown
Contributor

Closes #4818

Skip that set_target_properties() call when kind is INTERFACE. These properties have no effect on a header-only target on any CMake version (there's no binary artifact to version or suffix), so this is a no-op change for the actual compiled fmt/fmt-c targets and only removes a call that was never doing anything useful for fmt-header-only.

Originating manily from ....
setup_target(target kind) is called for both compiled targets (PUBLIC/PRIVATE kind) and the header-only fmt-header-only target (INTERFACE kind, line 418). It unconditionally calls set_target_properties(... VERSION ... SOVERSION ... DEBUG_POSTFIX ...).

@soumik15630m soumik15630m requested a review from vitaut as a code owner June 28, 2026 05:26

@vitaut vitaut 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.

Thanks for the fix!

@vitaut vitaut merged commit 81516a2 into fmtlib:main Jun 28, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants