I think we have a host library wrapper, which probably needs to be renamed to add_static_ccf_library() or some such but is still a valuable place to centralise common build/link time options.
Originally posted by @achamayou in #7128 (comment)
Currently called add_host_library, used to build ccf_js, ccf_kv, and ccf_endpoints. Should also be used for ccf and cchost, maybe others. Should include add_san, add_tidy, and add_warning_checks, and anything else we can dedupe.