From 255102b4a1f85d88e1ccd3dccc3c2c3135bbf274 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Mon, 5 May 2025 20:30:34 +0200 Subject: (cmake) when using --toolchain=llvm on windows, dependencies should be build with it --- xmake/modules/package/tools/cmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/modules/package') 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 -- cgit v1.3.1