Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

CMake package name and target namespace mismatch #306

Description

@SidneyCogdill

FYI: https://www.kitware.com/psa-your-package-name-and-target-namespace-should-match/ (I named the target namespace wrongly and didn't follow the best practices).

Currently:

  • Proxy 3:
    • package is found via find_package(proxy CONFIG REQUIRED)
    • there is no target namespace
    • there is target msft_proxy
  • Proxy 4:
    • package is found via find_package(proxy4 CONFIG REQUIRED)
    • the target namespace is msft_proxy
    • there are targets msft_proxy::proxy4 and msft_proxy::proxy4_module

Making changes to Proxy 3 probably isn't feasible at this point, but since Proxy 4 haven't been released yet, I think Proxy 4 should be updated to follow the best practices before its release.

Some random ideas:

  • find_package(msft_proxy4 CONFIG REQUIRED)
    target name: msft_proxy4::proxy, msft_proxy4::proxy_module
  • find_package(MicrosoftProxy4 CONFIG REQUIRED)
    target name: MicrosoftProxy4::Proxy, MicrosoftProxy4::ProxyModule
  • find_package(proxy4 CONFIG REQUIRED)
    target name: proxy4::proxy, proxy4::module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions