From fddb165c6ce9483e1b928de2eaff3e93464b7f04 Mon Sep 17 00:00:00 2001 From: Tyler Nichols Date: Thu, 25 Apr 2024 16:28:35 -0600 Subject: 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`. --- Modules/Compiler/AppleClang-OBJC.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12