cmaize.package_managers/cmake/dependency/detail_/check_target

cmaize.package_managers/cmake/dependency/detail_/check_target._cmaize_dependency_check_target(_dct_this _dct_type)

Ensures that the specified dependency’s target exists.

This function will assert that the build or find target exists. If the target does not exist this function will raise an informative error.

Parameters:
  • _dct_name (Dependency) – The Dependency we are handling

  • _dct_type (desc) – Either “build” or “find” depending on whether we are building or finding the dependency.

Raises:

TargetNotFound – Given dependency target does not exist.