fix: fix packer template error

This commit is contained in:
2026-08-06 13:19:59 +08:00
parent 0b4ecccb71
commit bf0837e4a6
3 changed files with 3 additions and 2 deletions
@@ -89,6 +89,7 @@ class PkgConfigRender:
payload: dict[str, Any] = {
"name": self.__properties.name,
"description": self.__properties.description,
"version": str(self.__properties.version),
"artifact": self.__properties.artifact,
"requires": self.__properties.requires,
}
@@ -10,7 +10,7 @@ includedir=${prefix}/include
Name: {{ name }}
Description: {{ description }}
Version: {{ version }}
{% if len(requires) != 0 -%}
{%- if requires | length != 0 %}
Requires: {{ requires | join(", ") }}
{%- endif %}
Libs: -L${libdir} -l{{ artifact }}
@@ -32,7 +32,7 @@ else()
)
endif()
{% if len(dependencies) != 0 -%}
{% if dependencies | length != 0 -%}
{# Pull in declared dependencies and wire them into the imported target -#}
include(CMakeFindDependencyMacro)
{% for dep in dependencies -%}