From 6c4f65481bb0df23d34d9e0815ca642804dbb412 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 15 Apr 2018 22:03:22 +0800 Subject: add qt static library --- xmake/modules/detect/sdks/find_qt.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xmake/modules/detect') diff --git a/xmake/modules/detect/sdks/find_qt.lua b/xmake/modules/detect/sdks/find_qt.lua index 6fb7d4b14..0ef499544 100644 --- a/xmake/modules/detect/sdks/find_qt.lua +++ b/xmake/modules/detect/sdks/find_qt.lua @@ -33,7 +33,10 @@ import("core.project.config") function _find_sdkdir(sdkdir) -- init the search directories - local pathes = {path.join(sdkdir, "**", "bin")} + local pathes = {} + if sdkdir then + table.insert(pathes, path.join(sdkdir, "**", "bin")) + end if os.host() == "macosx" then table.insert(pathes, "~/Qt/**/bin") elseif os.host() == "windows" then -- cgit v1.3.1