meson: make nm binary optional
[mesa.git] / src / gbm / meson.build
index b2ad66735926fc33881375b16ebe3d594ee91f6c..b7262c5980240638d89bedbee037e65bb1b95f68 100644 (file)
@@ -66,7 +66,7 @@ pkg.generate(
   libraries_private : '-ldl',  # FIXME: autotools lists this a incomplete
 )
 
-if with_tests
+if with_tests and prog_nm.found()
   test(
     'gbm-symbols-check',
     find_program('gbm-symbols-check'),