blob: 0489a1f1d121499a5a37b424efc5e321e810a180 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- ./Source/cmake/FindCairoGL.cmake.orig 2015-07-16 21:50:38.119831270 -0700
+++ ./Source/cmake/FindCairoGL.cmake 2015-07-16 21:51:33.119831257 -0700
@@ -29,7 +29,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
find_package(PkgConfig)
-pkg_check_modules(CAIRO_GL cairo-gl)
+pkg_check_modules(CAIRO_GL cairo-glesv2 cairo-egl cairo-glx)
# At the moment CairoGL does not add any extra cflags and libraries, so we can
# safely ignore CAIRO_GL_LIBRARIES and CAIRO_GL_INCLUDE_DIRS for the moment.
@@ -39,6 +39,9 @@
pkg_check_modules(${_UPPER_NAME} ${_component})
set(CAIRO_GL_INCLUDE_DIRS ${CAIRO_GL_INCLUDE_DIRS} ${_UPPER_NAME}_INCLUDE_DIRS)
set(CAIRO_GL_LIBRARIES ${CAIRO_GL_LIBRARIES} ${_UPPER_NAME}_LIBRARIES)
+ if (${_UPPER_NAME}_FOUND)
+ set(CAIRO_GL_FOUND 1)
+ endif ()
endforeach ()
include(FindPackageHandleStandardArgs)
|