mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-05 23:10:34 +00:00
Workaround for Clang 18
This commit is contained in:
parent
0a0154e1af
commit
a5c792f689
@ -1493,6 +1493,12 @@ if(NOT CMAKE_VERSION VERSION_LESS 3.24
|
|||||||
endif()
|
endif()
|
||||||
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)
|
if(NOT absl_FOUND)
|
||||||
set(ENABLE_GLOG_AND_GFLAGS ON)
|
set(ENABLE_GLOG_AND_GFLAGS ON)
|
||||||
|
Loading…
Reference in New Issue
Block a user