Skip to content

Commit

Permalink
CMake: Fix Windows OpenGL Linking
Browse files Browse the repository at this point in the history
  • Loading branch information
Holden committed Feb 4, 2025
1 parent d829048 commit 0c549e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/find-modules/FindGStreamer.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,11 @@ if(ANDROID)
target_link_options(GStreamer::GStreamer INTERFACE "-Wl,-Bsymbolic")
endif()

if(WIN32)
find_package(OpenGL REQUIRED)
target_link_libraries(GStreamer::GStreamer INTERFACE user32.lib OpenGL::GL)
endif()

if(QGC_GST_STATIC_BUILD)
target_compile_definitions(GStreamer::GStreamer INTERFACE QGC_GST_STATIC_BUILD)
endif()
Expand Down

0 comments on commit 0c549e2

Please sign in to comment.