diff options
| author | ruki <[email protected]> | 2023-09-14 00:55:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-09-14 00:55:14 +0800 |
| commit | bb012744cf9f946cf4251f92024eebb4e6453457 (patch) | |
| tree | a5215134fa5553141602b3fc58a211b3c64be0df | |
| parent | f3e610b80f997057f1539a31b7f2e16f7b0df97c (diff) | |
support catalyst for tools.cmake
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 2 |
2 files changed, 2 insertions, 2 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) diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 6e40e40be..528ad4985 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -224,7 +224,7 @@ function _get_configs(package, configs, opt) _get_configs_for_android(package, configs, opt) elseif package:is_plat("iphoneos", "watchos", "appletvos") 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) |
