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`.
This commit is contained in:
Tyler Nichols
2024-04-25 16:28:35 -06:00
committed by Brad King
parent 1dff17108d
commit fddb165c6c

View File

@@ -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)