Commit bce4c79b authored by Niklas Haas's avatar Niklas Haas
Browse files

demos: improve nuklear integrationo

1. Warn if submodule is missing
2. Link against -lm, fixes acos not resolving
parent c6f9fb97
Pipeline #79212 passed with stages
in 7 minutes and 25 seconds
......@@ -18,6 +18,7 @@ nuklear_found = cc.has_header('nuklear.h', include_directories: nuklear_inc)
nuklear = declare_dependency(
include_directories: nuklear_inc,
compile_args: '-Wno-missing-prototypes',
dependencies: libm,
)
apis = {}
......@@ -69,6 +70,12 @@ if apis.keys().length() == 0
subdir_done()
endif
if not nuklear_found
warning('Nuklear was not found in `demos/3rdparty`. Please run ' +
'`git submodule update --init` followed by `meson --wipe`. ' +
'Disabling nuklear based demos.')
endif
# Compile demos for each combination
foreach api, dep : apis
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment