diff --git a/plugins/samplesink/usrpoutput/CMakeLists.txt b/plugins/samplesink/usrpoutput/CMakeLists.txt index b0bd6dc8f..6808a8f71 100644 --- a/plugins/samplesink/usrpoutput/CMakeLists.txt +++ b/plugins/samplesink/usrpoutput/CMakeLists.txt @@ -45,14 +45,14 @@ else() set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR}) endif() -if(UHD_EXTERNAL) - add_dependencies(${TARGET_NAME} uhd) -endif() if(NOT Qt6_FOUND) add_library(${TARGET_NAME} ${usrpoutput_SOURCES}) else() qt_add_plugin(${TARGET_NAME} CLASS_NAME USRPOutputPlugin ${usrpoutput_SOURCES}) endif() +if(UHD_EXTERNAL) + add_dependencies(${TARGET_NAME} uhd) +endif() if(NOT BUILD_SHARED_LIBS) set_property(GLOBAL APPEND PROPERTY STATIC_PLUGINS_PROPERTY ${TARGET_NAME})