aboutsummaryrefslogtreecommitdiffstats
path: root/build/export_generators/hardcoded-cmake/root_global_vars.jinja
blob: d8750d179b61a23d01485ecbad06bf4e88ba47ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{% include '[generator]/disclaimer.jinja' -%}

{%  set platforms_count = platform_names|length -%}
{%  if platforms_count > 0 -%}
{%      for i in range(platforms_count) %}
{%          if i != 0 %}else{% endif %}if ({{ platforms[platform_names[i]] }})
{%-             for var in platform_vars[i] %}
  set({% for arg in var %}{{arg}}{% if not loop.last %} {% endif %}{% endfor %})
{%-             endfor %}
{%-     endfor %}
endif()
{%  endif %}