mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user