From f1edfe402c882ad01e471dbdfbf019533414ee49 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 5 Oct 2018 00:22:33 +0800 Subject: fix find_package dirs bug --- xmake/core/sandbox/modules/import/lib/detect/find_package.lua | 4 ++-- 1 file 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 -- cgit v1.3.1