Skip to content

Commit f5fcebe

Browse files
committed
Use Lua brackets for options with mix values
Use Lua brackets for complex options commit_hash:0ff2026e63e1f3f177218c10c0f42dd93add16e9
1 parent bea1621 commit f5fcebe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/export_generators/cmake/dir_targets.jinja

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
{%- set args = list_of_dict|selectattr(macro_field, 'eq', macro)|map(attribute=args_field)|sum -%}
55
{%- if args|length %}
66
{{ macro }}({{ target_name }}{{ macro_suffix }}
7-
{%- for arg in args %}
7+
{%- for arg in args -%}
8+
{%- if ('"' in arg) and (arg[0] != '"') %}
9+
[=[{{ arg }}]=]
10+
{%- else %}
811
{{ arg }}
12+
{%- endif -%}
913
{%- endfor %}
1014
)
1115
{% endif %}

0 commit comments

Comments
 (0)