Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.10.1
-
None
-
None
-
Problem seen on Ubuntu 18.04LTS and Ubuntu 20.04LTS, fix tested on both distributions.
Description
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@