mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 21:37:11 +00:00
macOS: Do not incorrectly search for per-arch SDKs
Extend commit a9b41195d2 (Handle multi-arch sysroots on Apple platforms,
2019-07-26, v3.17.0-rc1~287^2) to recognize versioned macOS SDK names.
Fixes: #27340
This commit is contained in:
1 parent
d98c9bf2cc
commit
1925477cb7
1 file changed
+1
-1
@@ -183,7 +183,7 @@ function(_apple_resolve_multi_arch_sysroots)
|
||||
return() # Only apply to multi-arch
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_OSX_SYSROOT OR CMAKE_OSX_SYSROOT STREQUAL "macosx")
|
||||
if(NOT CMAKE_OSX_SYSROOT OR CMAKE_OSX_SYSROOT MATCHES "(^|/)[Mm][Aa][Cc][Oo][Ss][Xx]")
|
||||
# macOS doesn't have a simulator sdk / sysroot, so there is no need to handle per-sdk arches.
|
||||
return()
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user