mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 22:18:29 -04:00
waf: stop build if OSD libs missing and requested
This commit is contained in:
parent
5c4b5c7859
commit
950be3fc17
@ -233,6 +233,7 @@ def check_SFML(cfg, env):
|
||||
for lib in libs:
|
||||
if not cfg.check(compiler='cxx', lib=lib, mandatory=False,
|
||||
global_define=True):
|
||||
cfg.fatal("Missing SFML libraries - please install libsfml-dev")
|
||||
return False
|
||||
|
||||
# see if we need Graphics.hpp or Graphics.h
|
||||
@ -241,6 +242,7 @@ def check_SFML(cfg, env):
|
||||
msg="Checking for Graphics.hpp", mandatory=False):
|
||||
if not cfg.check(compiler='cxx', fragment='''#include <SFML/Graphics.h>\nint main() {}''', define_name="HAVE_SFML_GRAPHICS_H",
|
||||
msg="Checking for Graphics.h", mandatory=False):
|
||||
cfg.fatal("Missing SFML headers SFML/Graphics.hpp or SFML/Graphics.h")
|
||||
return False
|
||||
env.LIB += libs
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user