diff --git a/cmake/clang_warnings.cmake b/cmake/clang_warnings.cmake index 2e31032..8c4f3e5 100644 --- a/cmake/clang_warnings.cmake +++ b/cmake/clang_warnings.cmake @@ -51,7 +51,7 @@ foreach(WARNING_FLAG ${WARNING_FLAGS}) set(WARNING_FLAGS_SPACED "${WARNING_FLAGS_SPACED} ${WARNING_FLAG}") endforeach() -if(NOT CMAKE_CXX_COMPILER_ID MATCHES Clang AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16) +if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16) foreach(WARNING_FLAG ${WARNING_FLAGS_VERSION16}) set(WARNING_FLAGS_SPACED "${WARNING_FLAGS_SPACED} ${WARNING_FLAG}") endforeach()