pineapple-src/externals/vcpkg/ports/opencv4/0013-fix-opengl.patch

12 lines
375 B
Diff
Raw Normal View History

2022-07-23 01:01:36 +00:00
--- 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()