From 1ac2a6314b8edbbc454b56317268e797602071f4 Mon Sep 17 00:00:00 2001 From: TGMarkiewicz Date: Wed, 26 May 2021 18:17:06 +0200 Subject: Fix version & requires fields in pkg config files Details: - When building with CMake, pkg-config files flac.pc and flac++.pc are not updated with Version information. This causes a failure when running a configure script in opus-tools (https://github.com/xiph/opus-tools). Note that OGG_PACKAGE is set to "ogg" exactly as in the configure.ac, but it is only set when the building explicitly with libogg. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c83dd83e..96e01aaf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,8 +22,11 @@ option(INSTALL_PKGCONFIG_MODULES "Install PkgConfig modules" ON) option(INSTALL_CMAKE_CONFIG_MODULE "Install CMake package-config module" ON) option(WITH_OGG "ogg support (default: test for libogg)" ON) +set(VERSION ${PROJECT_VERSION}) + if(WITH_OGG) find_package(Ogg REQUIRED) + set(OGG_PACKAGE "ogg") endif() find_package(Iconv) -- cgit v1.2.1