From 56692ca75bef2e367df5c43ef45b407c2e130abd Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Fri, 24 Jan 2025 14:20:38 +0100 Subject: [PATCH] Fix building with Clang >=18 and abseil --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3a68f4da..fd1a87c03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1522,8 +1522,8 @@ if(NOT CMAKE_VERSION VERSION_LESS 3.24 endif() endif() -# Workaround for Clang 18 -if(absl_FOUND AND absl_VERSION AND ("${absl_VERSION}" VERSION_LESS "20240722")) +# Workaround for Clang 18+ +if(absl_FOUND) if((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") AND NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "17.99")) add_compile_options(-fclang-abi-compat=17) endif()