Browse Source

[meson] add matching -I for lua lib version

master
Glenn Strauss 6 months ago
parent
commit
89cd3d8b9d
  1. 19
      src/meson.build

19
src/meson.build

@ -382,9 +382,24 @@ if get_option('with_lua')
found_lua = false
foreach l: ['lua5.3', 'lua-5.3', 'lua5.2', 'lua-5.2', 'lua5.1', 'lua-5.1', 'lua']
if not(found_lua)
liblua = compiler.find_library(l, required: false)
liblua = dependency(l, required: false)
if (liblua.found())
found_lua = liblua.found()
found_lua = true
else
liblua = compiler.find_library(l, required: false)
if (liblua.found())
found_lua = true
liblua_found_header = false
foreach ib: include_base_paths
if not(liblua_found_header)
i = join_paths(ib, l)
if compiler.has_header(join_paths(i, 'lua.h'))
liblua_found_header = true
liblua += [ declare_dependency(include_directories: include_directories(i)) ]
endif
endif
endforeach
endif
endif
endif
endforeach

Loading…
Cancel
Save