summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-05-05 20:30:34 +0200
committerArthur LAURENT <[email protected]>2025-05-05 20:30:34 +0200
commit255102b4a1f85d88e1ccd3dccc3c2c3135bbf274 (patch)
tree3e15284b40d788d58cb9246d22a8946bbf463b50 /xmake/modules/package/tools/cmake.lua
parent2774ecbc0961e1e2b1f995d8937b44c2c90e11c6 (diff)
(cmake) when using --toolchain=llvm on windows, dependencies should be build with it
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index d0055422d..64f7bea3a 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -452,10 +452,10 @@ function _get_configs_for_windows(package, configs, opt)
end
-- use clang-cl
- if package:has_tool("cc", "clang_cl") then
+ if package:has_tool("cc", "clang", "clang_cl") then
table.insert(configs, "-DCMAKE_C_COMPILER=" .. _translate_bin_path(package:build_getenv("cc")))
end
- if package:has_tool("cxx", "clang_cl") then
+ if package:has_tool("cxx", "clang", "clang_cl") then
table.insert(configs, "-DCMAKE_CXX_COMPILER=" .. _translate_bin_path(package:build_getenv("cxx")))
end