diff --git a/cmake/modules/FindPoppler.cmake b/cmake/modules/FindPoppler.cmake index d1a8ba7b0..7e520e8d8 100644 --- a/cmake/modules/FindPoppler.cmake +++ b/cmake/modules/FindPoppler.cmake @@ -45,6 +45,8 @@ else(_PopplerLinkFlags) endif(_PopplerLinkFlags) if (POPPLER_FOUND) + INCLUDE(CheckCXXSourceCompiles) + set(POPPLER_LIBRARY ${_PopplerLinkFlags}) # the cflags for poppler-qt4 can contain more than one include path