Skip to content

Commit be110d0

Browse files
committed
Merge pull request opencv#21303 from alalek:issue_21299_4.x
2 parents f948a2d + dcc32e8 commit be110d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: modules/highgui/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ if(APPLE)
271271
add_apple_compiler_options(${the_module})
272272
endif()
273273

274+
if(OPENCV_HIGHGUI_BUILTIN_BACKEND STREQUAL "WIN32UI" AND HAVE_OPENGL AND OPENGL_LIBRARIES)
275+
ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}")
276+
endif()
277+
274278
if(MSVC AND NOT BUILD_SHARED_LIBS AND BUILD_WITH_STATIC_CRT)
275279
set_target_properties(${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG")
276280
endif()

0 commit comments

Comments
 (0)