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