summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-14 09:32:22 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-14 09:32:22 -0500
commit03e9329656db37001866d8d225942604f23c8dd9 (patch)
tree25b88daa5c1b210da9342b01a400227d5563c143 /kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
parentee957dbdc18c9ce530ac28a15b530ba8b2f3e209 (diff)
downloadtdegraphics-03e9329656db37001866d8d225942604f23c8dd9.tar.gz
tdegraphics-03e9329656db37001866d8d225942604f23c8dd9.zip
Use poppler pkg-config information when running version checks
Diffstat (limited to 'kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake')
-rw-r--r--kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake b/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
index eab7a0a9..99786378 100644
--- a/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
+++ b/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake
@@ -9,8 +9,8 @@ if( BUILD_KPDF )
endif( )
tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
-set( CMAKE_REQUIRED_INCLUDES ${DBUS_TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS} ${QT_INCLUDE_DIRS})
-set( CMAKE_REQUIRED_LIBRARIES ${DBUS_TQT_LDFLAGS} ${TQT_LDFLAGS} ${QT_LDFLAGS} "-lpoppler" )
+set( CMAKE_REQUIRED_INCLUDES ${DBUS_TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS} ${QT_INCLUDE_DIRS} ${POPPLER_INCLUDE_DIRS})
+set( CMAKE_REQUIRED_LIBRARIES ${DBUS_TQT_LDFLAGS} ${TQT_LDFLAGS} ${QT_LDFLAGS} ${POPPLER_LDFLAGS} )
check_cxx_source_compiles("
#include <poppler/PSOutputDev.h>
int main(int, char**) { int a; int b; PSOutputDev *psOut = new PSOutputDev(\"test\", (PDFDoc*)0, (XRef*)0, (Catalog*)0, NULL, 0, 0, psModePS, a, b); } "