diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 33b6ba0..30fbc53 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -59,7 +59,8 @@ if(QT6_LIB_TYPE STREQUAL "STATIC_LIBRARY") list(APPEND LINK_LIBS FFmpeg::FFmpeg Qt6::QFFmpegMediaPlugin ${PLATFORM_PLUGINS}) endif() -target_link_libraries(snapshotapp PUBLIC ${LINK_LIBS}) +# CMAKE_DL_LIBS is needed for building on Ubuntu 20.04 +target_link_libraries(snapshotapp PUBLIC ${LINK_LIBS} ${CMAKE_DL_LIBS}) if(QT6_LIB_TYPE STREQUAL "STATIC_LIBRARY") qt_import_plugins(