Skip to content

Commit 5a65be1

Browse files
cwalk: fix compilation when both shared and static is wanted
1 parent 0e5b837 commit 5a65be1

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

releases.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@
513513
"cwalk"
514514
],
515515
"versions": [
516-
"1.2.9-1"
516+
"1.2.9-2"
517517
]
518518
},
519519
"cxxopts": {

subprojects/packagefiles/cwalk/meson.build

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
project('cwalk', 'c',
22
license: 'MIT',
33
version: '1.2.9',
4-
meson_version: '>= 0.57.0'
4+
meson_version: '>= 1.3.0'
55
)
66

77
cwalk_inc = include_directories('include')
88

9-
cwalk_c_args = []
10-
if get_option('default_library') != 'static'
11-
cwalk_c_args += '-DCWK_SHARED'
12-
endif
13-
149
cwalk = library('cwalk', 'src/cwalk.c',
1510
install: true,
1611
include_directories: cwalk_inc,
17-
c_args: cwalk_c_args
12+
c_shared_args: '-DCWK_SHARED'
1813
)
1914

2015
install_headers('include/cwalk.h')

0 commit comments

Comments
 (0)