Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeadSix27 <DeadSix27@users.noreply.github.com>2019-12-05 08:00:58 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2020-01-19 23:51:05 +0300
commit6d29f51a40be64e03acc2619f35b4971ba00617c (patch)
treedb03872a83b258b383f9d58fdac927e8467bc014 /CMakeLists.txt
parent60472f2dc2c89eed45de1a382eea5da4fb885db6 (diff)
CMake: use PACKAGE_VERSION for the pkg-config file
The old variable `OPUS_LIBRARY_VERSION`, does not line up with what's used in autoconf, which uses the PACKAGE_VERSION instead, which in turn lines up with what version the projects `opusfile` and `libsndfile` check for, for example. While at it, I also cleaned up the accidental double up in code. Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c9df248..ba86939a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -326,8 +326,7 @@ if(OPUS_INSTALL_PKG_CONFIG_MODULE)
set(exec_prefix ${CMAKE_INSTALL_PREFIX})
set(libdir ${CMAKE_INSTALL_FULL_LIBDIR})
set(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR})
- set(VERSION ${OPUS_LIBRARY_VERSION})
- set(VERSION ${OPUS_LIBRARY_VERSION})
+ set(VERSION ${PACKAGE_VERSION})
if(HAVE_LIBM)
set(LIBM "-lm")
endif()