diff --git a/src/algorithms/signal_source/adapters/CMakeLists.txt b/src/algorithms/signal_source/adapters/CMakeLists.txt index e2775865e..2cba96e8e 100644 --- a/src/algorithms/signal_source/adapters/CMakeLists.txt +++ b/src/algorithms/signal_source/adapters/CMakeLists.txt @@ -136,10 +136,12 @@ set(SIGNAL_SOURCE_ADAPTER_SOURCES file_signal_source.cc nsr_file_signal_source.cc spir_file_signal_source.cc rtl_tcp_signal_source.cc - two_bit_cpx_file_signal_source.cc ${OPT_DRIVER_SOURCES} ) +if(PC_GNURADIO_RUNTIME_VERSION VERSION_GREATER 3.7.4) + set(SIGNAL_SOURCE_ADAPTER_SOURCES ${SIGNAL_SOURCE_ADAPTER_SOURCES} two_bit_cpx_file_signal_source.cc ) +endif(PC_GNURADIO_RUNTIME_VERSION VERSION_GREATER 3.7.4) include_directories( ${CMAKE_CURRENT_SOURCE_DIR} diff --git a/src/core/receiver/CMakeLists.txt b/src/core/receiver/CMakeLists.txt index 677efd793..b56864898 100644 --- a/src/core/receiver/CMakeLists.txt +++ b/src/core/receiver/CMakeLists.txt @@ -25,6 +25,12 @@ set(GNSS_RECEIVER_SOURCES in_memory_configuration.cc ) + +if(PC_GNURADIO_RUNTIME_VERSION VERSION_GREATER 3.7.4) + add_definitions(-DMODERN_GNURADIO=1) +endif(PC_GNURADIO_RUNTIME_VERSION VERSION_GREATER 3.7.4) + + include_directories( $(CMAKE_CURRENT_SOURCE_DIR) ${CMAKE_SOURCE_DIR}/src/core/system_parameters diff --git a/src/core/receiver/gnss_block_factory.cc b/src/core/receiver/gnss_block_factory.cc index 770c1a6d3..95485a4e3 100644 --- a/src/core/receiver/gnss_block_factory.cc +++ b/src/core/receiver/gnss_block_factory.cc @@ -1045,6 +1045,7 @@ std::unique_ptr GNSSBlockFactory::GetBlock( exit(1); } } +#if MODERN_GNURADIO else if (implementation.compare("Two_Bit_Cpx_File_Signal_Source") == 0) { try @@ -1060,6 +1061,7 @@ std::unique_ptr GNSSBlockFactory::GetBlock( exit(1); } } +#endif else if (implementation.compare("Spir_File_Signal_Source") == 0) { try