summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author45degree <[email protected]>2023-03-06 22:10:40 +0800
committerGitHub <[email protected]>2023-03-06 22:10:40 +0800
commit93fffa788f95387d2e4cc4cc397bc55b485c1624 (patch)
treee3be3f37d38401ea62a51ee4bc9da0cb99822244
parent494c0596b975570277ae3f6a5882b0940db16802 (diff)
Update find_vulkansdk.lua
-rw-r--r--xmake/modules/detect/sdks/find_vulkansdk.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_vulkansdk.lua b/xmake/modules/detect/sdks/find_vulkansdk.lua
index ddb8ed094..dac1902e2 100644
--- a/xmake/modules/detect/sdks/find_vulkansdk.lua
+++ b/xmake/modules/detect/sdks/find_vulkansdk.lua
@@ -47,7 +47,7 @@ function main(opt)
local libname = (is_host("windows") and "vulkan-1" or "vulkan")
local libsuffix = ((is_host("windows") and arch == "x86") and "lib32" or "lib")
- if not is_host("windows") then
+ if is_host("linux") then
-- we attempt to find vulkan from /usr, e.g. /usr/include/vulkan/vulkan.h
table.insert(paths, "/usr");
table.insert(paths, "/usr/local")