From 7410182c648fe944491fdc75e4136bede4208f99 Mon Sep 17 00:00:00 2001 From: Robert Falkenberg Date: Tue, 1 Mar 2022 15:09:50 +0100 Subject: [PATCH] srsran_rf: fix warning of mismatching expressions in if() and endif() --- lib/src/phy/rf/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/phy/rf/CMakeLists.txt b/lib/src/phy/rf/CMakeLists.txt index 24973fadd..d29d464f3 100644 --- a/lib/src/phy/rf/CMakeLists.txt +++ b/lib/src/phy/rf/CMakeLists.txt @@ -48,7 +48,7 @@ if(RF_FOUND) if (UHD_ENABLE_CUSTOM_RFNOC) add_definitions(-DUHD_ENABLE_CUSTOM_RFNOC) endif(UHD_ENABLE_CUSTOM_RFNOC) - endif (UHD_FOUND) + endif (UHD_FOUND AND ENABLE_UHD) if (BLADERF_FOUND AND ENABLE_BLADERF) add_definitions(-DENABLE_BLADERF) @@ -63,7 +63,7 @@ if(RF_FOUND) endif (ENABLE_RF_PLUGINS) target_link_libraries(srsran_rf_blade srsran_rf_utils srsran_phy ${BLADERF_LIBRARIES}) install(TARGETS srsran_rf_blade DESTINATION ${LIBRARY_DIR}) - endif (BLADERF_FOUND) + endif (BLADERF_FOUND AND ENABLE_BLADERF) if (SOAPYSDR_FOUND AND ENABLE_SOAPYSDR) add_definitions(-DENABLE_SOAPYSDR) @@ -95,7 +95,7 @@ if(RF_FOUND) endif (ENABLE_RF_PLUGINS) target_link_libraries(srsran_rf_skiq srsran_rf_utils srsran_phy ${SKIQ_LIBRARIES} rt) install(TARGETS srsran_rf_skiq DESTINATION ${LIBRARY_DIR}) - endif(SKIQ_FOUND) + endif(SKIQ_FOUND AND ENABLE_SKIQ) if (ZEROMQ_FOUND AND ENABLE_ZEROMQ) add_definitions(-DENABLE_ZEROMQ) @@ -110,7 +110,7 @@ if(RF_FOUND) endif (ENABLE_RF_PLUGINS) target_link_libraries(srsran_rf_zmq srsran_rf_utils srsran_phy ${ZEROMQ_LIBRARIES}) install(TARGETS srsran_rf_zmq DESTINATION ${LIBRARY_DIR}) - endif (ZEROMQ_FOUND) + endif (ZEROMQ_FOUND AND ENABLE_ZEROMQ) # Add sources of file-based RF directly to the RF library (not as a plugin) list(APPEND SOURCES_RF rf_file_imp.c rf_file_imp_tx.c rf_file_imp_rx.c)