1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-30 02:44:50 +00:00

Fix ENABLE_OWN_ABSEIL when using clang

This commit is contained in:
Carles Fernandez 2025-01-24 15:08:15 +01:00
parent 56692ca75b
commit 4ac58ccb00
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -1523,7 +1523,7 @@ if(NOT CMAKE_VERSION VERSION_LESS 3.24
endif()
# Workaround for Clang 18+
if(absl_FOUND)
if(absl_FOUND AND NOT ENABLE_OWN_ABSEIL)
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()