Roland van Rijswijk-Deij created AVRO-3022:
----------------------------------------------
Summary: Generated pkg-config file for Avro C is invalid (no CMake
variable expansion)
Key: AVRO-3022
URL: https://issues.apache.org/jira/browse/AVRO-3022
Project: Apache Avro
Issue Type: Bug
Components: c
Affects Versions: 1.10.1
Environment: Problem seen on Ubuntu 18.04LTS and Ubuntu 20.04LTS, fix
tested on both distributions.
Reporter: Roland van Rijswijk-Deij
The pkg-config file for Avro C is invalid, because CMake does not expand the
macro variables in the input file to the package names for dependencies. This
is changed behaviour in CMake from version 3.10 and up.
It is easy to fix by adding the following statement to the CMakeLists.txt:
{{cmake_policy(SET CMP0053 OLD)}}
Without this setting, the installed *avro-c.pc* will contain the following:
{{Requires: @ZLIB_PKG@ @LZMA_PKG@ @SNAPPY_PKG@}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)