target_tools.jinja 318 B

12345678910111213
  1. {%- set tools = current_target.tools -%}
  2. {%- if tools|length %}
  3. if(NOT CMAKE_CROSSCOMPILING)
  4. add_dependencies({{ name }}
  5. {%- for tool in tools %}
  6. {%- set path_and_name = rsplit(tool, "/", 2) -%}
  7. {%- set toolName = path_and_name[1] %}
  8. {{ toolName }}
  9. {%- endfor %}
  10. )
  11. endif()
  12. {% endif -%}