aboutsummaryrefslogtreecommitdiffstats
path: root/build/export_generators/cmake/target_options.jinja
blob: b6e2570f04e9f3f3a2b7f41d36d48a407ec615bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{%- set OPTIONS_ORDER_BEFORE_LINKS = ['target_compile_options', 'target_include_directories'] -%}
{%- set OPTIONS_ORDER_AFTER_LINKS = ['target_link_options'] -%}

{%- for OPTION in OPTIONS_ORDER_BEFORE_LINKS -%}
{{  TargetOptions(name, current_target.is_fake_module, current_target.target_options, OPTION, []) }}
{%- endfor -%}

{%- include "[generator]/target_links.jinja" -%}

{%- for OPTION in OPTIONS_ORDER_AFTER_LINKS -%}
{{  TargetOptions(name, current_target.is_fake_module, current_target.target_options, OPTION, []) }}
{%- endfor -%}

{#- Then all other options -#}
{{  TargetOptions(name, current_target.is_fake_module, current_target.target_options, "", OPTIONS_ORDER_BEFORE_LINKS + OPTIONS_ORDER_AFTER_LINKS) }}