aboutsummaryrefslogtreecommitdiffstats
path: root/build/export_generators/cmake/target_options.jinja
blob: e8cbeb8dd3dc499994b854a09e0567c5f61f136a (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, is_really_fake_module, current_target.target_options, OPTION, []) }}
{%- endfor -%}

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

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

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