diff options
author | Joakim Karlsson <oakimk@gmail.com> | 2023-01-19 11:08:22 +0100 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2023-01-19 16:58:58 +0000 |
commit | c06a38da3158a2ccb375bd516dd5a4922938b235 (patch) | |
tree | 3de9eb2723f4cd6c2e493c70f6d14fe967653bbb /CMakeLists.txt | |
parent | ae4868f4bdd2e8dce27cd08f15c6fb6ce9103da1 (diff) |
CMake: Update a compiler version check
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a248e2ca0f..a8852379d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -698,7 +698,7 @@ else() # ! MSVC if((CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "5.1") OR (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "6.0") OR (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "12.0")) - if(NOT CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_VERSION VERSION_LESS "4.7") + if(NOT CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_VERSION VERSION_LESS "5.0") list(APPEND WIRESHARK_C_ONLY_FLAGS -Wno-missing-field-initializers) endif() # Silence warnings for initialization of nested structs like |