summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-09-05 21:31:22 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-09-05 21:31:22 +0530
commit8875fe49ecc49e8728fefbf7b90afcc91bd69f47 (patch)
tree59b332c7257c2f06cf1206252028c383ec054893
parent7397eb0cd43f6ac88a0aed9211d8516ded216195 (diff)
meson: Don't pass GNU-like compiler wargs on MSVC
cl : Command line error D8021 : invalid numeric argument '/Wno-missing-include-dirs'
-rw-r--r--ext/dts/meson.build9
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/dts/meson.build b/ext/dts/meson.build
index 1e4b3e2d0..41b39814d 100644
--- a/ext/dts/meson.build
+++ b/ext/dts/meson.build
@@ -14,9 +14,12 @@ if not dca_dep.found()
endif
endif
-# autotools didn't use the libdca pkg-config cflags, and they
-# can point to a non-existing location (/usr/include/dca)
-no_warn_c_args = ['-Wno-missing-include-dirs']
+no_warn_c_args = []
+if cc.get_id() != 'msvc'
+ # autotools didn't use the libdca pkg-config cflags, and they
+ # can point to a non-existing location (/usr/include/dca)
+ no_warn_c_args = ['-Wno-missing-include-dirs']
+endif
if dca_dep.found()
gstdtsdec = library('gstdtsdec',