add_dependency Subroutine

public subroutine add_dependency(target, dependency)

Add pointer to dependeny in target%dependencies

Arguments

Type IntentOptional AttributesName
type(build_target_t), intent(inout) :: target
type(build_target_t), intent(in), target:: dependency

Contents

Source Code


Source Code

subroutine add_dependency(target, dependency)
    type(build_target_t), intent(inout) :: target
    type(build_target_t) , intent(in), target :: dependency

    target%dependencies = [target%dependencies, build_target_ptr(dependency)]

end subroutine add_dependency