summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/sdks
diff options
context:
space:
mode:
authorruki <[email protected]>2018-04-15 22:03:22 +0800
committerruki <[email protected]>2018-04-15 22:03:22 +0800
commit6c4f65481bb0df23d34d9e0815ca642804dbb412 (patch)
tree4d6ad11349d71e06a5e0876a329ff7e6069dcaac /xmake/modules/detect/sdks
parent4dab3917696d31139166ada278a9b4e4f4e9e4e6 (diff)
add qt static library
Diffstat (limited to 'xmake/modules/detect/sdks')
-rw-r--r--xmake/modules/detect/sdks/find_qt.lua5
1 files changed, 4 insertions, 1 deletions
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