mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-10-31 23:33:03 +00:00
Fix ENABLE_OWN_ABSEIL when using clang
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user