diff options
author | Brad King <brad.king@kitware.com> | 2021-07-23 13:39:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-07-23 13:40:35 (GMT) |
commit | bd00c0e819a0fd293cca614efc1cee41483ff713 (patch) | |
tree | 177fe0237281597c01743b4eb39f031506239610 /Modules/Compiler | |
parent | aec1c439c5a5f25f0f03a1a770aa7f77e06479f7 (diff) | |
parent | d61bc4241d02b32f4a39abe722a9af064af3a7da (diff) | |
download | CMake-bd00c0e819a0fd293cca614efc1cee41483ff713.zip CMake-bd00c0e819a0fd293cca614efc1cee41483ff713.tar.gz CMake-bd00c0e819a0fd293cca614efc1cee41483ff713.tar.bz2 |
Merge topic 'gnu_c23'
d61bc4241d GNU: Correct C23 flags
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6376
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/GNU-C.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/GNU-C.cmake b/Modules/Compiler/GNU-C.cmake index 39e9c72..03e8d2b 100644 --- a/Modules/Compiler/GNU-C.cmake +++ b/Modules/Compiler/GNU-C.cmake @@ -42,8 +42,8 @@ if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 8.1) endif() if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 9.1) - set(CMAKE_C23_STANDARD_COMPILE_OPTION "-std=c23") - set(CMAKE_C23_EXTENSION_COMPILE_OPTION "-std=gnu23") + set(CMAKE_C23_STANDARD_COMPILE_OPTION "-std=c2x") + set(CMAKE_C23_EXTENSION_COMPILE_OPTION "-std=gnu2x") endif() __compiler_check_default_language_standard(C 3.4 90 5.0 11 8.1 17) |