]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: Don't create static library target unless option is enabled 37395/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 10 May 2025 20:19:22 +0000 (22:19 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 12 May 2025 11:35:50 +0000 (13:35 +0200)
commit1fbaabf9ec3a733702b3f8be8ddf77977bde4e70
treea412dbc287f624aeb110822d6549ea12b701ac2c
parent30d20907bddfe064cc3437a888dd8f00d14929e4
meson: Don't create static library target unless option is enabled

While we don't build these by default, all the source files still
get added to the compile_commands.json file by meson, which can confuse
tools as they might end up analyzing the source files twice or analyzing
the wrong one.

To avoid this issue, only define the static library target if the
corresponding option is enabled.
meson.build
src/test/meson.build