aboutsummaryrefslogtreecommitdiffstats
path: root/build/export_generators/cmake/target_tools.jinja
blob: 489dfd4ef9db4a65c8627b00137cca17d51f2d74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{%- set tools = current_target.tools -%}
{%- if tools|length %}

if(NOT CMAKE_CROSSCOMPILING)
  add_dependencies({{ name }}
{%-    for tool in tools %}
{%-         set path_and_name = rsplit(tool, "/", 2) -%}
{%-         set toolName = path_and_name[1] %}
    {{ toolName }}
{%-    endfor %}
  )
endif()
{%  endif -%}