[poppler] CMakeLists.txt

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Jun 26 02:37:15 PDT 2013


 CMakeLists.txt |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit ae016aa263c218fbfbd607cc92feac1013348c7e
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Jun 26 11:33:55 2013 +0200

    Fix qt5 found/not found logic

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 01eb993..fccdde4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -108,12 +108,12 @@ if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_
   find_package(Qt5Xml)
   find_package(Qt5Widgets)
   find_package(Qt5Test)
-  if (NOT Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Xml_FOUND AND Qt5Widgets_FOUND AND Qt5Test_FOUND)
+  if (Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Xml_FOUND AND Qt5Widgets_FOUND AND Qt5Test_FOUND)
+    set(QT5_FOUND true)
+  else ()
     message("-- Package Qt5Core or Qt5Gui or Qt5Xml or Qt5Widgets or Qt5Test not found")
     set(QT5_FOUND false)
-  else(NOT Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Xml_FOUND AND Qt5Widgets_FOUND AND Qt5Test_FOUND)
-    set(QT5_FOUND true)
-  endif(NOT Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Xml_FOUND AND Qt5Widgets_FOUND AND Qt5Test_FOUND)
+  endif()
 else(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7)
   set(QT5_FOUND false)
   message("-- CMake >= 2.8.8 is needed to enable Qt5")


More information about the poppler mailing list