1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/graphics/opencv/files/patch-cmake__OpenCVFindLibsGUI.cmake
Jason E. Hale 049486f9e8 - Fix build with QT4 option (error: GL/glx.h: No such file or directory) [1]
- Specify major Qt version number to squash some CMake warnings about Qt5
- Use OPTIONS_RADIO for GUI support - build only allows use of one toolkit
- Make OpenGL support optional (off by default since it only works with
  GUI support)
- Allow OpenGL support with GTK2

Reported by:	Wolfgang Riegler <wolfgang.riegler@gmx.de> [1]
2013-12-10 23:56:44 +00:00

15 lines
504 B
CMake

--- ./cmake/OpenCVFindLibsGUI.cmake.orig 2013-12-10 09:20:59.000000000 -0500
+++ ./cmake/OpenCVFindLibsGUI.cmake 2013-12-10 09:22:40.000000000 -0500
@@ -56,10 +56,9 @@
if(OPENGL_FOUND)
set(HAVE_OPENGL TRUE)
list(APPEND OPENCV_LINKER_LIBS ${OPENGL_LIBRARIES})
+ ocv_include_directories(${OPENGL_INCLUDE_DIR})
if(QT_QTOPENGL_FOUND)
set(HAVE_QT_OPENGL TRUE)
- else()
- ocv_include_directories(${OPENGL_INCLUDE_DIR})
endif()
endif()
endif()