]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
meson: remove rpm dependencies when build as static
authorSteven Seungcheol Lee <sc108.lee@samsung.com>
Thu, 3 Mar 2022 08:33:24 +0000 (17:33 +0900)
committerSteven Seungcheol Lee <sc108.lee@samsung.com>
Thu, 3 Mar 2022 08:45:53 +0000 (17:45 +0900)
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
meson.build

index df5dbe1eba66eaa91d92cc2bc3b6dc3618fb1985..bd963f2782f11d923b638b9548d809bced5c9dc0 100644 (file)
@@ -148,6 +148,11 @@ configure_file(
 )
 
 ################################################################################
+libtype = get_option('default_library')
+if libtype == 'static'
+  requires = ''
+endif
+
 substs = configuration_data()
 substs.set('NAME',    meson.project_name())
 substs.set('VERSION', meson.project_version())