diff options
author | Tyler Nichols <tylerbrawl@gmail.com> | 2024-04-25 22:28:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-04-30 15:05:03 (GMT) |
commit | fddb165c6ce9483e1b928de2eaff3e93464b7f04 (patch) | |
tree | 10af512d201d26eca2679d16edffebf8861f91f9 | |
parent | 1dff17108d542f72e2ad7115ba2a231a22006268 (diff) | |
download | CMake-fddb165c6ce9483e1b928de2eaff3e93464b7f04.zip CMake-fddb165c6ce9483e1b928de2eaff3e93464b7f04.tar.gz CMake-fddb165c6ce9483e1b928de2eaff3e93464b7f04.tar.bz2 |
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`.
-rw-r--r-- | Modules/Compiler/AppleClang-OBJC.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/AppleClang-OBJC.cmake b/Modules/Compiler/AppleClang-OBJC.cmake index f40c396..8a95d26 100644 --- a/Modules/Compiler/AppleClang-OBJC.cmake +++ b/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) |