fix: fix packer template error
This commit is contained in:
@@ -89,6 +89,7 @@ class PkgConfigRender:
|
|||||||
payload: dict[str, Any] = {
|
payload: dict[str, Any] = {
|
||||||
"name": self.__properties.name,
|
"name": self.__properties.name,
|
||||||
"description": self.__properties.description,
|
"description": self.__properties.description,
|
||||||
|
"version": str(self.__properties.version),
|
||||||
"artifact": self.__properties.artifact,
|
"artifact": self.__properties.artifact,
|
||||||
"requires": self.__properties.requires,
|
"requires": self.__properties.requires,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ includedir=${prefix}/include
|
|||||||
Name: {{ name }}
|
Name: {{ name }}
|
||||||
Description: {{ description }}
|
Description: {{ description }}
|
||||||
Version: {{ version }}
|
Version: {{ version }}
|
||||||
{% if len(requires) != 0 -%}
|
{%- if requires | length != 0 %}
|
||||||
Requires: {{ requires | join(", ") }}
|
Requires: {{ requires | join(", ") }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
Libs: -L${libdir} -l{{ artifact }}
|
Libs: -L${libdir} -l{{ artifact }}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ else()
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
{% if len(dependencies) != 0 -%}
|
{% if dependencies | length != 0 -%}
|
||||||
{# Pull in declared dependencies and wire them into the imported target -#}
|
{# Pull in declared dependencies and wire them into the imported target -#}
|
||||||
include(CMakeFindDependencyMacro)
|
include(CMakeFindDependencyMacro)
|
||||||
{% for dep in dependencies -%}
|
{% for dep in dependencies -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user