Explorar el Código

AppleClang: Fix Objective C 23 support detection

Set the requirement for Objective C 23 support for AppleClang to
`11.0.3` in `${CMAKE_ROOT}\Modules\Compiler\AppleClang-OBJC.cmake`.
This is consistent with the requirement for C 23 support as
indicated in `${CMAKE_ROOT}\Modules\Compiler\AppleClang-C.cmake`.
Tyler Nichols hace 1 año
padre
commit
fddb165c6c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Modules/Compiler/AppleClang-OBJC.cmake

+ 1 - 1
Modules/Compiler/AppleClang-OBJC.cmake

@@ -30,7 +30,7 @@ if(NOT CMAKE_OBJC_COMPILER_VERSION VERSION_LESS 10.0)
   set(CMAKE_OBJC17_STANDARD__HAS_FULL_SUPPORT ON)
 endif()
 
-if(NOT CMAKE_OBJC_COMPILER_VERSION VERSION_LESS 11.0)
+if(NOT CMAKE_OBJC_COMPILER_VERSION VERSION_LESS 11.0.3)
   set(CMAKE_OBJC23_STANDARD_COMPILE_OPTION "-std=c2x")
   set(CMAKE_OBJC23_EXTENSION_COMPILE_OPTION "-std=gnu2x")
   set(CMAKE_OBJC23_STANDARD__HAS_FULL_SUPPORT ON)