--- Source/cmake/FindCairoGL.cmake.orig 2015-10-11 10:46:53.807798579 -0700 +++ Source/cmake/FindCairoGL.cmake 2015-10-11 10:50:51.938713925 -0700 @@ -29,7 +29,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. find_package(PkgConfig) -pkg_check_modules(CAIROGL cairo-gl) +pkg_check_modules(CAIROGL cairo-glesv2 cairo-egl cairo-glx) # At the moment CairoGL does not add any extra cflags and libraries, so we can # safely ignore CAIROGL_LIBRARIES and CAIROGL_INCLUDE_DIRS for the moment. @@ -43,6 +43,9 @@ if (${_UPPER_NAME}_LIBRARIES) set(CAIROGL_LIBRARIES ${CAIROGL_LIBRARIES} ${_UPPER_NAME}_LIBRARIES) endif () + if (${_UPPER_NAME}_FOUND) + set(CAIRO_GL_FOUND 1) + endif () endforeach () include(FindPackageHandleStandardArgs)