mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Build volk_gnsssdr with C++20 with clang++ if available
This commit is contained in:
parent
597806ed17
commit
c31236096d
@ -138,7 +138,11 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|||||||
set(CMAKE_CXX_STANDARD 14)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
else()
|
else()
|
||||||
if(${FILESYSTEM_FOUND})
|
if(${FILESYSTEM_FOUND})
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
if(CMAKE_VERSION VERSION_LESS 3.12)
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
else()
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
endif()
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
else()
|
else()
|
||||||
set(CMAKE_CXX_STANDARD 14)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
Loading…
Reference in New Issue
Block a user