mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-10 23:43:58 +03:00
Xcode: Remove compiler id dependency on xctest
Previously the compiler identification project would implicitly generate unit-tests that depend on XCTest when building for iOS, visionOS, and tvOS. Fixes: #26600
This commit is contained in:
1 parent
4148fe5487
commit
e7062a79bd
1 file changed
+2
-3
@@ -719,9 +719,8 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS}
|
||||
set(id_sdkroot "SDKROOT = \"${CMAKE_OSX_SYSROOT}\";")
|
||||
if(CMAKE_OSX_SYSROOT MATCHES "(^|/)[Ii][Pp][Hh][Oo][Nn][Ee]" OR
|
||||
CMAKE_OSX_SYSROOT MATCHES "(^|/)[Xx][Rr]" OR
|
||||
CMAKE_OSX_SYSROOT MATCHES "(^|/)[Aa][Pp][Pp][Ll][Ee][Tt][Vv]")
|
||||
set(id_product_type "com.apple.product-type.bundle.unit-test")
|
||||
elseif(CMAKE_OSX_SYSROOT MATCHES "(^|/)[Ww][Aa][Tt][Cc][Hh]")
|
||||
CMAKE_OSX_SYSROOT MATCHES "(^|/)[Aa][Pp][Pp][Ll][Ee][Tt][Vv]" OR
|
||||
CMAKE_OSX_SYSROOT MATCHES "(^|/)[Ww][Aa][Tt][Cc][Hh]")
|
||||
set(id_product_type "com.apple.product-type.framework")
|
||||
endif()
|
||||
else()
|
||||
|
||||
Reference in new issue
Block a user