We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e274fc commit dcc32e8Copy full SHA for dcc32e8
modules/highgui/CMakeLists.txt
@@ -271,6 +271,10 @@ if(APPLE)
271
add_apple_compiler_options(${the_module})
272
endif()
273
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
+
278
if(MSVC AND NOT BUILD_SHARED_LIBS AND BUILD_WITH_STATIC_CRT)
279
set_target_properties(${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG")
280
0 commit comments