aboutsummaryrefslogtreecommitdiffstats
path: root/main/inih/fix-pkgconfig-version.patch
blob: 50c552efe89af6287753af7c86b8778bccee5b4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/meson.build b/meson.build
index 4602326..9dd9f8f 100644
--- a/meson.build
+++ b/meson.build
@@ -2,6 +2,7 @@ project('inih',
     ['c','cpp'],
     default_options : ['default_library=static'],
     license : 'BSD-3-Clause',
+    version : '@PKGVER@',
 )
 
 #### options ####
@@ -73,6 +74,7 @@ if distro_install
     pkg.generate(lib_inih,
         name : 'inih',
         description : 'simple .INI file parser',
+        version : meson.project_version(),
     )
 endif
 
@@ -99,6 +101,7 @@ if get_option('with_INIReader')
         pkg.generate(lib_INIReader,
             name : 'INIReader',
             description : 'simple .INI file parser for C++',
+            version : meson.project_version(),
         )
     endif