summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerId.cmake
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2017-09-17 16:03:42 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2017-09-19 18:44:31 (GMT)
commit0be0e02cfba547733d710118ebbd74e61f1fce42 (patch)
treeb443ce6b281ed686939e8c2934570e703032bf94 /Modules/CMakeDetermineCompilerId.cmake
parent4547d9a83030f8ae7e636cef16a261c65e6feb40 (diff)
downloadCMake-0be0e02cfba547733d710118ebbd74e61f1fce42.zip
CMake-0be0e02cfba547733d710118ebbd74e61f1fce42.tar.gz
CMake-0be0e02cfba547733d710118ebbd74e61f1fce42.tar.bz2
Xcode: Add tvOS and watchOS toolchain file support
Issue #16839
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 0a93e5f..9988a10 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -321,7 +321,8 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS}
set(id_product_type "com.apple.product-type.tool")
if(CMAKE_OSX_SYSROOT)
set(id_sdkroot "SDKROOT = \"${CMAKE_OSX_SYSROOT}\";")
- if(CMAKE_OSX_SYSROOT MATCHES "(^|/)[Ii][Pp][Hh][Oo][Nn][Ee]")
+ if(CMAKE_OSX_SYSROOT MATCHES "(^|/)[Ii][Pp][Hh][Oo][Nn][Ee]" OR
+ CMAKE_OSX_SYSROOT MATCHES "(^|/)[Aa][Pp][Pp][Ll][Ee][Tt][Vv]")
set(id_product_type "com.apple.product-type.bundle.unit-test")
endif()
else()