From d4f0344d9d25210f8054c69b5c9f16e59ad2c1cd Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 23 Oct 2017 15:20:56 +0200 Subject: [PATCH] Fix version in pkg_config. --- kiwix.pc.in | 2 +- meson.build | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/kiwix.pc.in b/kiwix.pc.in index 55dba087e..259e1d75a 100644 --- a/kiwix.pc.in +++ b/kiwix.pc.in @@ -4,7 +4,7 @@ includedir=${prefix}/include Name: libkiwix Description: A library that contains a lot of things used by used by other kiwix programs -Version: 1.0 +Version: @version@ Requires: @requires@ Libs: -L${libdir} -lkiwix @extra_libs@ Cflags: -I${includedir}/ @extra_cflags@ diff --git a/meson.build b/meson.build index 00694bad5..e6d76916c 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('kiwixlib', 'cpp', - version : '1.0.0', + version : '1.0.1', license : 'GPL', default_options : ['c_std=c11', 'cpp_std=c++11']) @@ -101,6 +101,7 @@ pkg_conf.set('prefix', get_option('prefix')) pkg_conf.set('requires', ' '.join(pkg_requires)) pkg_conf.set('extra_libs', ' '.join(extra_libs)) pkg_conf.set('extra_cflags', extra_cflags) +pkg_conf.set('version', meson.project_version()) configure_file(output : 'kiwix.pc', configuration : pkg_conf, input : 'kiwix.pc.in',