Skip to content

CPM name of the package MUST NOT be exported target name #560

@artiomn

Description

@artiomn

NAME # The unique name of the dependency (should be the exported target's name)

There are two problems:

  • Package can export several targets (i.e. lib and lib_static).
  • find_package() will not work for some packages. I.e. for ZeroMQ. If I name the dependency ZeroMQ I will get an error in the Windows build, if I name dependency libzmq, it will be always downloaded, because find_package() doesn't found it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions