summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")