Skip to content

Commit

Permalink
fix: build with --shared failed on ubuntu 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart-Steensma committed Jan 30, 2024
1 parent 964c8e2 commit f258110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f258110

Please sign in to comment.