meson: Don't pass GNU-like compiler wargs on MSVC
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 5 Sep 2018 16:01:22 +0000 (21:31 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Wed, 5 Sep 2018 16:01:22 +0000 (21:31 +0530)
cl : Command line error D8021 : invalid numeric argument '/Wno-missing-include-dirs'

ext/dts/meson.build

index 1e4b3e2..41b3981 100644 (file)
@@ -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',