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

Adjust cross-compilation flags to properly support FPGA signal sources

This commit is contained in:
Marc Majoral 2024-07-19 10:11:44 +02:00
parent d24c35854a
commit 9567e95e33
No known key found for this signature in database
GPG Key ID: 4CC7BE8C367C596C
4 changed files with 9 additions and 3 deletions

View File

@ -3348,6 +3348,12 @@ if(ENABLE_AD9361 OR ENABLE_FMCOMMS2)
endif()
endif()
##############################################
# Check FPGA-related signal sources
##############################################
if((ENABLE_AD9361 OR ENABLE_FPGA_MAX2771_EVKIT) AND NOT ENABLE_FPGA)
message(FATAL_ERROR "ENABLE_AD9361 and ENABLE_FPGA_MAX2771_EVKIT can only be set when ENABLE_FPGA is also set.")
endif()
##############################################

View File

@ -167,7 +167,7 @@ target_include_directories(signal_source_adapters
${GNSSSDR_SOURCE_DIR}/src/core/interfaces
)
if(ENABLE_FPGA OR ENABLE_AD9361 OR ENABLE_FPGA_MAX2771_EVKIT)
if(ENABLE_FPGA)
target_link_libraries(signal_source_adapters
PUBLIC
signal_source_libs

View File

@ -120,7 +120,7 @@ if(ENABLE_FMCOMMS2 OR ENABLE_AD9361 OR ENABLE_PLUTOSDR)
endif()
endif()
if(ENABLE_FPGA OR ENABLE_AD9361)
if(ENABLE_FPGA)
target_link_libraries(signal_source_libs
PUBLIC
algorithms_libs

View File

@ -52,7 +52,7 @@ if(ENABLE_FPGA)
)
endif()
if(ENABLE_FPGA OR ENABLE_AD9361)
if(ENABLE_FPGA)
set(CORE_LIBS_SOURCES
${CORE_LIBS_SOURCES}
uio_fpga.cc