Skip to content

Commit

Permalink
cwalk: fix compilation when both shared and static is wanted
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco committed Jun 26, 2024
1 parent 0e5b837 commit 8308a94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@
"cwalk"
],
"versions": [
"1.2.9-1"
"1.2.9-1",
"1.2.9-2"
]
},
"cxxopts": {
Expand Down
9 changes: 2 additions & 7 deletions subprojects/packagefiles/cwalk/meson.build
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
project('cwalk', 'c',
license: 'MIT',
version: '1.2.9',
meson_version: '>= 0.57.0'
meson_version: '>= 1.3.0'
)

cwalk_inc = include_directories('include')

cwalk_c_args = []
if get_option('default_library') != 'static'
cwalk_c_args += '-DCWK_SHARED'
endif

cwalk = library('cwalk', 'src/cwalk.c',
install: true,
include_directories: cwalk_inc,
c_args: cwalk_c_args
c_shared_args: '-DCWK_SHARED'
)

install_headers('include/cwalk.h')
Expand Down

0 comments on commit 8308a94

Please sign in to comment.