Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 12130 → Rev 12131

/trunk/Scribus/cmake/modules/CAIROConfig.cmake
25,14 → 25,13
SET(PKG_CAIRO_LIBRARIES ${_libCairoLinkDir})
ELSE (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.5)
INCLUDE(FindPkgConfig)
pkg_search_module(PKG_CAIRO REQUIRED libcairo>=1.2.0 cairo>=1.2.0)
pkg_search_module(CAIRO REQUIRED libcairo>=1.2.0 cairo>=1.2.0)
ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 2.5)
ENDIF(PREFIX_CAIRO)
 
 
FIND_PATH(CAIRO_INCLUDE_DIR
NAMES cairo.h
PATHS ${PREFIX_CAIRO_INCLUDE} ${PKG_CAIRO_INCLUDE_DIRS} /usr/local/include /usr/include
PATHS ${PREFIX_CAIRO_INCLUDE} ${PKG_CAIRO_INCLUDE_DIRS} ${CAIRO_INCLUDE_DIRS} /usr/local/include /usr/include
PATH_SUFFIXES cairo
NO_DEFAULT_PATH
)
39,7 → 38,7
 
FIND_LIBRARY(CAIRO_LIBRARY
NAMES libcairo cairo
PATHS ${PREFIX_CAIRO_LIB} ${PKG_CAIRO_LIBRARIES} /usr/local/lib /usr/lib
PATHS ${PREFIX_CAIRO_LIB} ${PKG_CAIRO_LIBRARIES} ${CAIRO_LIBRARY_DIRS} /usr/local/lib /usr/lib
NO_DEFAULT_PATH
)