summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2010-10-17 14:29:22 +0200
committerPino Toscano <pino@kde.org>2010-10-17 14:31:26 +0200
commitab0049d8be5dfe1989c4aa33c2732915c62fecb2 (patch)
treeec27faef517ade92c317fddcd7f95a54183f6102 /cmake
parent1cea33717c92631ee9c417d9f89e32b03695c75a (diff)
[CMake] Cairo package: make the version check really working
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindCairo.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/modules/FindCairo.cmake b/cmake/modules/FindCairo.cmake
index e3b65ec7..d536c051 100644
--- a/cmake/modules/FindCairo.cmake
+++ b/cmake/modules/FindCairo.cmake
@@ -21,10 +21,10 @@ else(CAIRO_INCLUDE_DIRS AND CAIRO_LIBRARIES)
if(NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
- include(FindPkgConfig)
- if(PACKAGE_FIND_VERSION_COUNT GREATER 0)
- set(_cairo_version_cmp ">=${PACKAGE_FIND_VERSION}")
- endif(PACKAGE_FIND_VERSION_COUNT GREATER 0)
+ find_package(PkgConfig REQUIRED)
+ if(Cairo_FIND_VERSION_COUNT GREATER 0)
+ set(_cairo_version_cmp ">=${Cairo_FIND_VERSION}")
+ endif(Cairo_FIND_VERSION_COUNT GREATER 0)
pkg_check_modules(_pc_cairo cairo${_cairo_version_cmp})
if(_pc_cairo_FOUND)
set(CAIRO_FOUND TRUE)