summaryrefslogtreecommitdiffstatsci
path: root/CMakeScripts/Modules/FindCairo.cmake
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-02-11 16:51:31 -0800
committerBryce Harrington <b.harrington@samsung.com>2014-02-11 16:51:31 -0800
commit37316cce242dfc0f245f0beefcb2e7bd3ac0ca25 (patch)
tree21c86b3740086e019eaab6c2796d688d88f2f91e /CMakeScripts/Modules/FindCairo.cmake
parent814fdf541ff92646ad346baab47cd1232118bd6d (diff)
Error out cleanly if cairo dev stuff is not present
Diffstat (limited to 'CMakeScripts/Modules/FindCairo.cmake')
-rw-r--r--CMakeScripts/Modules/FindCairo.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeScripts/Modules/FindCairo.cmake b/CMakeScripts/Modules/FindCairo.cmake
index bc13772..8b93644 100644
--- a/CMakeScripts/Modules/FindCairo.cmake
+++ b/CMakeScripts/Modules/FindCairo.cmake
@@ -41,9 +41,16 @@ find_path(CAIRO_GL_INCLUDE_DIRS
set (CAIRO_FOUND "NO")
if (CAIRO_LIBRARIES AND CAIRO_INCLUDE_DIRS)
set (CAIRO_FOUND "YES")
+else (CAIRO_LIBRARIES AND CAIRO_INCLUDE_DIRS)
+ if (Cairo_FIND_REQUIRED)
+ message(FATAL_ERROR "Could not find Cairo")
+ endif (Cairo_FIND_REQUIRED)
endif (CAIRO_LIBRARIES AND CAIRO_INCLUDE_DIRS)
set (CAIRO_GL_FOUND "NO")
if (CAIRO_LIBRARIES AND CAIRO_GL_INCLUDE_DIRS)
set (CAIRO_GL_FOUND "YES")
endif (CAIRO_LIBRARIES AND CAIRO_GL_INCLUDE_DIRS)
+
+# TODO: Check for EGL support
+# - locate symbols cairo_egl_device_create and cairo_gl_surface_create_for_egl \ No newline at end of file