File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
project (' nethogs' ,
6
6
[' c' , ' cpp' ],
7
7
default_options : [' warning_level=3' ,
8
- ' cpp_std=c++14' ]
8
+ ' cpp_std=c++14' ],
9
+ version : run_command (' ./determineVersion.sh' ).stdout().strip(),
9
10
)
10
11
11
12
cc = meson .get_compiler(' cpp' )
12
- version = run_command (' ./determineVersion.sh' , check : true ).stdout().strip()
13
13
14
14
#######################################
15
15
## Dependencies and flags definition ##
@@ -19,7 +19,7 @@ projectinc = [include_directories('.', 'src')]
19
19
20
20
# flags
21
21
c_args = [
22
- ' -DVERSION="' + version + ' "'
22
+ ' -DVERSION="' + meson .project_version() + ' "'
23
23
]
24
24
25
25
# dependencies
@@ -42,5 +42,5 @@ pkgconfig = import('pkgconfig')
42
42
pkgconfig_install_dir = join_paths (get_option (' libdir' ), ' pkgconfig' )
43
43
pkgconfig.generate(libnethogs,
44
44
requires : [' libpcap' ],
45
- version : version
45
+ version : meson .project_version()
46
46
)
You can’t perform that action at this time.
0 commit comments