mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 13:59:05 +08:00
12 lines
375 B
Diff
12 lines
375 B
Diff
|
--- a/modules/highgui/CMakeLists.txt
|
||
|
+++ b/modules/highgui/CMakeLists.txt
|
||
|
@@ -271,7 +271,7 @@ if(APPLE)
|
||
|
add_apple_compiler_options(${the_module})
|
||
|
endif()
|
||
|
|
||
|
-if(OPENCV_HIGHGUI_BUILTIN_BACKEND STREQUAL "WIN32UI" AND HAVE_OPENGL AND OPENGL_LIBRARIES)
|
||
|
+if(HAVE_OPENGL AND OPENGL_LIBRARIES)
|
||
|
ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}")
|
||
|
endif()
|
||
|
|