summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-04-13 22:14:12 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-04-13 22:29:15 +0530
commit90c04fa17b2c378973bf52a6bcec6ecadcd39a31 (patch)
treecddb1bf47247d98bdfc9df56cbb68d01771c456a
parent9dc64fbbaf47004070222181930d27ae0ff2ea29 (diff)
downloadgstreamer-plugins-bad-90c04fa17b2c378973bf52a6bcec6ecadcd39a31.tar.gz
meson: Only run decklink cpp test when building it
Otherwise it gets run on Windows with MSVC where we don't build Decklink and then it causes an error.
-rw-r--r--sys/decklink/meson.build10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/decklink/meson.build b/sys/decklink/meson.build
index 2b795c4c6..2c6a2f1f3 100644
--- a/sys/decklink/meson.build
+++ b/sys/decklink/meson.build
@@ -25,12 +25,12 @@ if libdl.found() and have_pthread_h
endif
endif
-cxx = meson.get_compiler('cpp')
-if cxx.has_argument('-Wno-non-virtual-dtor')
- decklink_cppargs += ['-Wno-non-virtual-dtor']
-endif
-
if build_decklink
+ cxx = meson.get_compiler('cpp')
+ if cxx.has_argument('-Wno-non-virtual-dtor')
+ decklink_cppargs += ['-Wno-non-virtual-dtor']
+ endif
+
decklink = library('gstdecklink',
decklink_sources,
cpp_args : gst_plugins_bad_args + decklink_cppargs,