message: CMake: disabled bogus warnings about unavailable API in iOS/tvOS 11.0 simulator build
diff: @@ -329,6 +329,17 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  )
  set(CLANG_RELEASE_OPTIONS -Wno-unused-variable)
  target_compile_options(Diligent-BuildSettings INTERFACE $<$<NOT:$<CONFIG:Debug>>:${CLANG_RELEASE_OPTIONS}>)
  +
  + if ((PLATFORM_IOS AND CMAKE_OSX_SYSROOT STREQUAL "iphonesimulator") OR PLATFORM_IOS_SIMULATOR OR
  + (PLATFORM_TVOS AND CMAKE_OSX_SYSROOT STREQUAL "appletvsimulator") OR PLATFORM_TVOS_SIMULATOR)
  + # There is a known long-standing issue in simulator SDK:
  + # the compiler generates a lot of bogus warnings in Metal
  + # headers about unavailable API
  + target_compile_options(Diligent-BuildSettings
  + INTERFACE
  + -Wno-error=unguarded-availability-new
  + )
  + endif()
  endif()
  if(PLATFORM_MACOS)
  