summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-10-05 00:22:33 +0800
committerruki <[email protected]>2018-10-04 20:15:21 +0800
commitf1edfe402c882ad01e471dbdfbf019533414ee49 (patch)
tree76ee0d0942ce22c0ca7449e844deca3cc6877218
parent83b5cc5d800bf2b88ea0b7f2815c1c6a58465101 (diff)
fix find_package dirs bug
-rw-r--r--xmake/core/sandbox/modules/import/lib/detect/find_package.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/sandbox/modules/import/lib/detect/find_package.lua b/xmake/core/sandbox/modules/import/lib/detect/find_package.lua
index 6506dcffa..f02204c4f 100644
--- a/xmake/core/sandbox/modules/import/lib/detect/find_package.lua
+++ b/xmake/core/sandbox/modules/import/lib/detect/find_package.lua
@@ -149,8 +149,8 @@ function sandbox_lib_detect_find_package._find_from_prefixdirs(name, opt)
local packagepath = path.join(name:sub(1, 1), name, "*")
table.insert(packagedirs, path.join(config.directory(), "installed", platsubdirs, "debug", packagepath))
table.insert(packagedirs, path.join(config.directory(), "installed", platsubdirs, "release", packagepath))
- table.insert(packagedirs, path.join(global.directory(), "installed", platsubdirs, "debug", ackagepath))
- table.insert(packagedirs, path.join(global.directory(), "installed", platsubdirs, "release", ackagepath))
+ table.insert(packagedirs, path.join(global.directory(), "installed", platsubdirs, "debug", packagepath))
+ table.insert(packagedirs, path.join(global.directory(), "installed", platsubdirs, "release", packagepath))
local prefixfile = find_file("prefixinfo.txt", packagedirs)
-- get the include and link directories