Update xmake.lua

This commit is contained in:
Jérôme Leclercq 2021-12-28 20:09:30 +01:00
parent 3a4e006106
commit c3f7f215d5
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ rule("qt5.env")
if qtbase then
qtdir = assert(qtbase:get("qtdir"))
else
local qtcore = assert(target:pkg("qt5core"), "target does not use qt5")
local qtcore = target:pkg("qt5core")
if not qtcore then
os.raise("target " .. target:name() .. " does not use qt5")
end
qtdir = assert(qtcore:get("qtdir"))
end