Browse Source

Xcode: Add tvOS and watchOS toolchain file support

Issue #16839
Gregor Jasny 8 years ago
parent
commit
0be0e02cfb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Modules/CMakeDetermineCompilerId.cmake

+ 2 - 1
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()