1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-12 11:10:33 +00:00

Workaround for Clang 18

This commit is contained in:
Carles Fernandez 2024-10-07 15:05:32 +02:00
parent 0a0154e1af
commit a5c792f689
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -1493,6 +1493,12 @@ 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"))
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()
endif()
if(NOT absl_FOUND)
set(ENABLE_GLOG_AND_GFLAGS ON)