summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-04-13 23:14:02 +0800
committerruki <[email protected]>2021-04-13 23:14:02 +0800
commitdaba45f8fe5736f18b1af82c9bca2da7c2835da8 (patch)
tree76e0e81589444df62f88fc612c6dd3bd42b52e5b
parent4f53a6256240a4ba3266b8e7a837fde357f6eced (diff)
improve find_package
-rw-r--r--xmake/modules/package/manager/apt/find_package.lua2
-rw-r--r--xmake/modules/package/manager/conda/find_package.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/manager/apt/find_package.lua b/xmake/modules/package/manager/apt/find_package.lua
index 1eb1720ed..f27968c0e 100644
--- a/xmake/modules/package/manager/apt/find_package.lua
+++ b/xmake/modules/package/manager/apt/find_package.lua
@@ -40,7 +40,7 @@ function main(name, opt)
-- find dpkg
local dpkg = find_tool("dpkg")
if not dpkg then
- raise("dpkg not found!")
+ return
end
-- find package
diff --git a/xmake/modules/package/manager/conda/find_package.lua b/xmake/modules/package/manager/conda/find_package.lua
index b7637a685..5d2634d63 100644
--- a/xmake/modules/package/manager/conda/find_package.lua
+++ b/xmake/modules/package/manager/conda/find_package.lua
@@ -65,7 +65,7 @@ function main(name, opt)
-- find conda
local conda = find_tool("conda")
if not conda then
- raise("conda not found!")
+ return
end
-- find package