summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-02 21:35:14 +0800
committerGitHub <[email protected]>2025-01-02 21:35:14 +0800
commitb1c10bb87af68fd7c6390b4da8f8f415b7758735 (patch)
tree0b578f9ac9bbee9f0676b81cd028c79722d0231d /xmake/modules/package/tools/cmake.lua
parent686b414c97f5fae095676d06fbf62ddc3d0bb36f (diff)
parent4c403499dd0459ddbddaa0063a9580c18a9b2618 (diff)
Merge pull request #6031 from Redbeanw44602/fix/clang-with-msvc-wine
Fix clang with msvc-wine
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index e83f254d8..e5c915ee0 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -652,7 +652,7 @@ function _get_configs_for_cross(package, configs, opt)
envs.CMAKE_CXX_COMPILER = _translate_bin_path(package:build_getenv("cxx"))
envs.CMAKE_ASM_COMPILER = _translate_bin_path(package:build_getenv("as"))
envs.CMAKE_AR = _translate_bin_path(package:build_getenv("ar"))
- if package:is_plat("windows") then
+ if package:is_plat("windows") and package:has_tool("cxx", "cl") then
envs.CMAKE_AR = path.join(path.directory(envs.CMAKE_CXX_COMPILER), "lib.exe")
end
_fix_cxx_compiler_cmake(package, envs)