Skip to content

target utilities: added cth_target_alias_any - #1

Merged
codethinki merged 1 commit into
mainfrom
feat/cth-target-alias-any
Oct 3, 2026
Merged

codethinki merged 1 commit into
mainfrom
feat/cth-target-alias-any

Conversation

@codethinki

@codethinki codethinki commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Adds cth_target_alias_any(<alias> <candidates...>): creates <alias> for the first matching target

find_package(libhv CONFIG REQUIRED)
cth_target_alias_any(libhv::hv hv hv_static)
target_link_libraries(cth_net PRIVATE libhv::hv)

Aliases the first existing target of several candidates, for packages that
export different target names per configuration (e.g. libhv: hv / hv_static).
@codethinki
codethinki merged commit af0e178 into main Oct 3, 2026
14 checks passed
@codethinki
codethinki deleted the feat/cth-target-alias-any branch October 3, 2026 10:55
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.

1 participant