meson woes: prevent internal error if glad is missing (not actually required for build)

This commit is contained in:
Andrei Alexeyev 2018-07-01 11:47:13 +03:00
parent e4500111b3
commit 5d293393b8
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4

View file

@ -54,6 +54,8 @@ glad_dep = declare_dependency(
link_with : glad_lib
)
run_target('gen-gl-loader',
command : [glad_program, glad_args],
)
if glad_program.found()
run_target('gen-gl-loader',
command : [glad_program, glad_args],
)
endif