openbsd-ports/x11/kde4/okular/patches/patch-cmake_modules_FindPoppler_cmake
zhuk 1f940a7ad9 Okular is a universal document viewer based on KPDF for KDE 4.
It combines the excellent functionalities of KPDF with the
versatility of supporting different kind of documents, like PDF,
Postscript, DjVu, CHM, XPS, ePub and others.
2013-04-24 18:34:39 +00:00

15 lines
687 B
Plaintext

$OpenBSD: patch-cmake_modules_FindPoppler_cmake,v 1.1.1.1 2013/04/24 18:34:39 zhuk Exp $
--- cmake/modules/FindPoppler.cmake.orig Tue Oct 11 04:18:26 2011
+++ cmake/modules/FindPoppler.cmake Tue Oct 11 04:19:22 2011
@@ -57,6 +57,10 @@ endif(NOT _poppler_version_bad)
if (POPPLER_FOUND)
include(CheckCXXSourceCompiles)
+ # Unbreak Qt4 linking after QT_USE_IMPORTED_TARGETS set in KDE config
+ set(QT_USE_IMPORTED_TARGETS FALSE)
+ find_package(Qt4)
+
# check whether we're using poppler 0.6
set(CMAKE_REQUIRED_INCLUDES ${POPPLER_INCLUDE_DIR} ${QT_INCLUDE_DIR})
set(CMAKE_REQUIRED_LIBRARIES ${POPPLER_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY})