summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/GNU-OBJC.cmake
diff options
context:
space:
mode:
authorTyler <tylerbrawl@gmail.com>2024-03-20 21:54:36 (GMT)
committerBrad King <brad.king@kitware.com>2024-04-30 15:05:03 (GMT)
commit7c38e6bb526ceb6a678497aaeb1e6076f7a38ba3 (patch)
tree6840245e6e62a3ba2b75504c90d78facfdb20f90 /Modules/Compiler/GNU-OBJC.cmake
parentfddb165c6ce9483e1b928de2eaff3e93464b7f04 (diff)
downloadCMake-7c38e6bb526ceb6a678497aaeb1e6076f7a38ba3.zip
CMake-7c38e6bb526ceb6a678497aaeb1e6076f7a38ba3.tar.gz
CMake-7c38e6bb526ceb6a678497aaeb1e6076f7a38ba3.tar.bz2
Add CMAKE_<LANG>_STANDARD_LATEST variables
Add a variable to indicate the latest standard known to be supported for each language: * `CMAKE_C_STANDARD_LATEST` * `CMAKE_CXX_STANDARD_LATEST` * `CMAKE_CUDA_STANDARD_LATEST` * `CMAKE_HIP_STANDARD_LATEST` * `CMAKE_OBJC_STANDARD_LATEST` * `CMAKE_OBJCXX_STANDARD_LATEST` These variables, more generally referred to as `CMAKE_<LANG>_STANDARD_LATEST`, are assigned an integer value which represents the minimum between the latest version of the associated language standard supported by the current compiler and the latest version supported by CMake. Add documentation for these variables in a new page called `CMAKE_<LANG>_STANDARD_LATEST` was added under the "Variables for Languages" section of the `cmake-variables(7)` page. Update each compiler-specific CMake script under `${CMAKE_ROOT}\Modules\Compiler` to manually define the relevant `CMAKE_<LANG>_STANDARD_LATEST` variable as necessary. This will require updating and maintaining as newer compiler versions become recognized by CMake. Closes: #25717
Diffstat (limited to 'Modules/Compiler/GNU-OBJC.cmake')
-rw-r--r--Modules/Compiler/GNU-OBJC.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/GNU-OBJC.cmake b/Modules/Compiler/GNU-OBJC.cmake
index 7eeed83..4a2cd85 100644
--- a/Modules/Compiler/GNU-OBJC.cmake
+++ b/Modules/Compiler/GNU-OBJC.cmake
@@ -1,5 +1,6 @@
include(Compiler/GNU)
__compiler_gnu(OBJC)
+__compiler_gnu_c_standards(OBJC)
if((NOT DEFINED CMAKE_DEPENDS_USE_COMPILER OR CMAKE_DEPENDS_USE_COMPILER)