diff options
author | TGMarkiewicz <tomasz.g.markiewicz@gmail.com> | 2021-05-26 18:17:06 +0200 |
---|---|---|
committer | Ralph Giles <giles@thaumas.net> | 2021-06-24 15:59:09 -0700 |
commit | 1ac2a6314b8edbbc454b56317268e797602071f4 (patch) | |
tree | 948e2ff67d3af32cec687e4d1e907790f7069a5b /CMakeLists.txt | |
parent | a9557c13fa78d73bee0ef44a08057bff6d88acee (diff) | |
download | flac-1ac2a6314b8edbbc454b56317268e797602071f4.tar.gz |
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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) |