mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-13 19:50:34 +00:00
Fix building for UHD 4.0.0.0
This commit is contained in:
parent
04c61536c6
commit
7fda06adb8
@ -620,10 +620,12 @@ if(NOT (GNURADIO_VERSION VERSION_LESS 3.8) AND LOG4CPP_READY_FOR_CXX17)
|
||||
)
|
||||
endif()
|
||||
if(FILESYSTEM_FOUND)
|
||||
if(CMAKE_VERSION VERSION_LESS 3.13)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
else()
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.13)
|
||||
# UHD 4.0.0.0 still does not support C++20
|
||||
if((NOT UHD_FOUND) OR (UHD_FOUND AND ("${UHD_VERSION}" VERSION_LESS 3.99)))
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
endif()
|
||||
endif()
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
endif()
|
||||
|
@ -92,6 +92,7 @@ SPDX-FileCopyrightText: 2011-2021 Carles Fernandez-Prades <carles.fernandez@cttc
|
||||
- Fix bug in searching for gr-iio when CMake was re-run several times with
|
||||
different settings for the `-DENABLE_FMCOMMS2` or `-DENABLE_PLUTOSDR` building
|
||||
options.
|
||||
- Fix building when using UHD v4.0.0.0.
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user