From: Daniel P. Berrangé <[email protected]>

Signed-off-by: Daniel P. Berrangé <[email protected]>
Reviewed-by: Pierrick Bouvier <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 4eeef552748..d9a17eeefd3 100644
--- a/meson.build
+++ b/meson.build
@@ -3200,7 +3200,7 @@ if host_os == 'windows'
 endif
 
 # Detect if ConvertStringToBSTR has been defined in _com_util namespace
-if host_os == 'windows'
+if host_os == 'windows' and 'cpp' in all_languages
   has_convert_string_to_bstr = cxx.links('''
     #include <comutil.h>
     int main() {
-- 
2.52.0


Reply via email to