srsran_rf: fix build without any active RF plugin

master
Robert Falkenberg 3 years ago
parent 2dca581741
commit e086479a7b

@ -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)
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.

Loading…
Cancel
Save