patch-cmake_FindCairo_cmake 706 B

123456789101112131415161718192021
  1. $OpenBSD: patch-cmake_FindCairo_cmake,v 1.1 2014/01/10 14:47:09 dcoppa Exp $
  2. --- cmake/FindCairo.cmake.orig Fri Jan 10 13:06:02 2014
  3. +++ cmake/FindCairo.cmake Fri Jan 10 13:06:48 2014
  4. @@ -38,14 +38,14 @@ FIND_PATH(CAIRO_INCLUDE_DIR
  5. PATH_SUFFIXES cairo
  6. )
  7. -IF(APPLE)
  8. +IF(APPLE OR CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
  9. #On Mountain Lion we need this for the XQuartz supplied version of cairo
  10. PKG_CHECK_MODULES(PC_FONTCONFIG fontconfig) # FIXME: After we require CMake 2.8.2 we can pass QUIET to this call.
  11. FIND_PATH(FC_INCLUDE_DIR
  12. NAMES fontconfig/fontconfig.h
  13. HINTS ${PC_FONTCONFIG_INCLUDEDIR}
  14. )
  15. -ENDIF(APPLE)
  16. +ENDIF()
  17. FIND_LIBRARY(CAIRO_LIBRARY
  18. NAMES cairo