Keep null_dep global

This commit is contained in:
jackun 2020-01-30 19:52:15 +02:00
parent a045ae3b64
commit d71dbdddbf
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

View File

@ -28,6 +28,7 @@ project('mangohud',
cc = meson.get_compiler('c')
cpp = meson.get_compiler('cpp')
prog_python = import('python').find_installation('python3')
null_dep = dependency('', required : false)
pre_args = [
'-D__STDC_CONSTANT_MACROS',
@ -171,7 +172,6 @@ endforeach
# check for dl support
if cc.has_function('dlopen')
null_dep = dependency('', required : false)
dep_dl = null_dep
else
dep_dl = cc.find_library('dl')