aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-05 02:34:00 +0000
committerAlexander Neundorf <neundorf@kde.org>2007-06-05 02:34:00 +0000
commit2afd73c8c91ecd46eeb8310ce96f47475656c5f9 (patch)
tree54da55f3c133f8f51635aa36060ec9b684d71028 /modules
parenta1058d94db823ce271d67d8b861da064ec699e92 (diff)
downloadextra-cmake-modules-2afd73c8c91ecd46eeb8310ce96f47475656c5f9.tar.gz
extra-cmake-modules-2afd73c8c91ecd46eeb8310ce96f47475656c5f9.tar.bz2
-don't list the standard dirs
Alex svn path=/trunk/KDE/kdelibs/; revision=671575
Diffstat (limited to 'modules')
-rw-r--r--modules/FindPopplerQt4.cmake30
1 files changed, 14 insertions, 16 deletions
diff --git a/modules/FindPopplerQt4.cmake b/modules/FindPopplerQt4.cmake
index a67bde44..b4ee4086 100644
--- a/modules/FindPopplerQt4.cmake
+++ b/modules/FindPopplerQt4.cmake
@@ -17,25 +17,23 @@
if(NOT WIN32)
-INCLUDE(UsePkgConfig)
-
-PKGCONFIG(poppler-qt4 _PopplerQt4IncDir _PopplerQt4LinkDir _PopplerQt4LinkFlags _PopplerQt4Cflags)
-
-set(POPPLER_QT4_DEFINITIONS ${_PopplerQt4Cflags})
+ include(UsePkgConfig)
+
+ pkgconfig(poppler-qt4 _PopplerQt4IncDir _PopplerQt4LinkDir _PopplerQt4LinkFlags _PopplerQt4Cflags)
+
+ set(POPPLER_QT4_DEFINITIONS ${_PopplerQt4Cflags})
endif(NOT WIN32)
-FIND_PATH(POPPLER_QT4_INCLUDE_DIR poppler-qt4.h
- ${_PopplerQt4IncDir}/poppler
- /usr/include/poppler
- /usr/local/include/poppler
-)
-
-FIND_LIBRARY(POPPLER_QT4_LIBRARIES poppler-qt4
+find_path(POPPLER_QT4_INCLUDE_DIR
+ NAMES poppler-qt4.h
+ PATH_SUFFIXES poppler
+ PATHS ${_PopplerQt4IncDir}
+)
+
+find_library(POPPLER_QT4_LIBRARIES poppler-qt4
${_PopplerQt4LinkDir}
- /usr/lib
- /usr/local/lib
)
-
+
if (POPPLER_QT4_INCLUDE_DIR AND POPPLER_QT4_LIBRARIES)
set(POPPLER_QT4_FOUND TRUE)
else (POPPLER_QT4_INCLUDE_DIR AND POPPLER_QT4_LIBRARIES)
@@ -52,4 +50,4 @@ else (POPPLER_QT4_FOUND)
endif (PopplerQt4_FIND_REQUIRED)
endif (POPPLER_QT4_FOUND)
-MARK_AS_ADVANCED(POPPLER_QT4_INCLUDE_DIR POPPLER_QT4_LIBRARIES)
+mark_as_advanced(POPPLER_QT4_INCLUDE_DIR POPPLER_QT4_LIBRARIES)