From e74ef9269f979022e2213d599d155017c8586233 Mon Sep 17 00:00:00 2001 From: Florian Becker Date: Wed, 22 Nov 2023 13:37:00 +0100 Subject: [PATCH] Fix compiler flags again --- cmake/clang_warnings.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()