cmaize.user_api/dependencies/impl_/find_dependency

cmaize.user_api/dependencies/impl_/find_dependency._cmaize_find_dependency(_fd_tgt _fd_pm _fd_package_specs _fd_project _fd_name)

Factorization from cmaize_find_dependency and cmaize_find_or_build_dependency.

The first part of both cmaize_find_dependency and cmaize_find_or_build_dependency is the same. This function factors that common code out into one function.

Parameters:
  • tgt (CMaizeTarget*) – The variable to hold the target that was found. Will be empty if no target was found.

  • pm (PackageManager*) – The variable to hold the package manager we looked inside of.

  • package_specs (PackageSpecification*) – The variable to hold the package specification we looked for.

  • project (CMaizeProject) – The CMaize project this find operation is associated with.

  • name (desc) – The name of the dependency we are looking for.

  • **kwargs

    The arguments to forward to _fob_parse_arguments. See _fob_parse_arguments documentation for more details.

Raises:

UNKNOWN_PM – When pm_name does not correspond to a known package manager. Strong throw guarantee.