summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/export_generators/cmake/target_links.jinja2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/export_generators/cmake/target_links.jinja b/build/export_generators/cmake/target_links.jinja
index 4bce4d28ac6..3b349c17a79 100644
--- a/build/export_generators/cmake/target_links.jinja
+++ b/build/export_generators/cmake/target_links.jinja
@@ -28,7 +28,7 @@
{%- endif -%}
{%- endif -%}
{%- if (current_target.allocators is defined) and (current_target.allocators|length) -%}
-{%- if (current_target.macro == "add_executable") or (current_target.macro == "add_library" and ("SHARED" in current_target.macro_args)) -%}
+{%- if (current_target.macro == "add_executable") or (current_target.macro == "add_shared_library") or (current_target.macro == "add_library" and ("SHARED" in current_target.macro_args)) -%}
{#- support allocators -#}
{%- set allocators = allocators + current_target.allocators -%}
{%- else -%}