srsran_rf: fix build without any active RF plugin

This commit is contained in:
Robert Falkenberg 2022-02-21 12:38:56 +01:00
parent 2dca581741
commit e086479a7b
1 changed files with 3 additions and 1 deletions

View File

@ -119,7 +119,9 @@ if(RF_FOUND)
add_library(srsran_rf_object OBJECT ${SOURCES_RF})
set_property(TARGET srsran_rf_object PROPERTY POSITION_INDEPENDENT_CODE 1)
if (ENABLE_RF_PLUGINS)
add_dependencies(srsran_rf_object ${DYNAMIC_PLUGINS})
if (DYNAMIC_PLUGINS)
add_dependencies(srsran_rf_object ${DYNAMIC_PLUGINS})
endif (DYNAMIC_PLUGINS)
add_library(srsran_rf SHARED $<TARGET_OBJECTS:srsran_rf_object>)
target_link_libraries(srsran_rf dl)
# Add $ORIGIN (i.e. current location of this library) to rpath of srsran_rf.