summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-14 00:55:14 +0800
committerruki <[email protected]>2023-09-14 00:55:14 +0800
commitbb012744cf9f946cf4251f92024eebb4e6453457 (patch)
treea5215134fa5553141602b3fc58a211b3c64be0df /xmake/modules/package/tools/cmake.lua
parentf3e610b80f997057f1539a31b7f2e16f7b0df97c (diff)
support catalyst for tools.cmake
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 041c240b1..4c3f58def 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -698,7 +698,7 @@ function _get_configs(package, configs, opt)
_get_configs_for_android(package, configs, opt)
elseif package:is_plat("iphoneos", "watchos") or
-- for cross-compilation on macOS, @see https://github.com/xmake-io/xmake/issues/2804
- (package:is_plat("macosx") and not package:is_arch(os.subarch())) then
+ (package:is_plat("macosx") and (get_config("appledev") or not package:is_arch(os.subarch()))) then
_get_configs_for_appleos(package, configs, opt)
elseif package:is_plat("mingw") then
_get_configs_for_mingw(package, configs, opt)