Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Nov 28, 2023
1 parent 659fe83 commit de58e45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,6 @@ if(ENABLE_MEDIAPLAYER_LIBMPV)
set(LibMPV_ROOT "${CMAKE_SOURCE_DIR}/resources/scripts/libmpv")
endif()

list(APPEND QT_COMPONENTS OpenGL)

if(BUILD_WITH_QT6)
list(APPEND QT_COMPONENTS OpenGLWidgets)
endif()

add_compile_definitions(ENABLE_MEDIAPLAYER_LIBMPV)
endif()

Expand Down
16 changes: 3 additions & 13 deletions src/librssguard/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -829,19 +829,9 @@ elseif(ENABLE_MEDIAPLAYER_LIBMPV)
PRIVATE
${LibMPV_INCLUDE_DIRS}
)

if(BUILD_WITH_QT6)
target_link_libraries(rssguard PUBLIC
Qt${QT_VERSION_MAJOR}::OpenGL
Qt${QT_VERSION_MAJOR}::OpenGLWidgets
${LibMPV_LIBRARIES}
)
else()
target_link_libraries(rssguard PUBLIC
Qt${QT_VERSION_MAJOR}::OpenGL
${LibMPV_LIBRARIES}
)
endif()
target_link_libraries(rssguard PUBLIC
${LibMPV_LIBRARIES}
)
endif()

if(UNIX AND NOT APPLE AND NOT ANDROID)
Expand Down

0 comments on commit de58e45

Please sign in to comment.