[poppler] CMakeLists.txt

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Mar 24 07:10:51 PDT 2008


 CMakeLists.txt |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 3e4164f2db69358adf07596195842dd00458b621
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Mar 24 15:10:31 2008 +0100

    fix some cmake HAVE_foo

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 897a884..ed80cc5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,14 +40,14 @@ find_package(Freetype REQUIRED)
 find_package(Fontconfig REQUIRED)
 macro_optional_find_package(JPEG)
 if(JPEG_FOUND)
-  set(ENABLE_LIBJPEG JPEG_FOUND)
+  set(ENABLE_LIBJPEG ${JPEG_FOUND})
 endif(JPEG_FOUND)
 macro_optional_find_package(Qt3)
 macro_optional_find_package(Qt4)
 macro_optional_find_package(GTK)
 if(GLIB_FOUND)
   macro_optional_find_package(Cairo)
-  set(HAVE_CAIRO CAIRO_FOUND)
+  set(HAVE_CAIRO ${CAIRO_FOUND})
   if(CAIRO_FOUND)
     set(CAIRO_REQ "cairo")
   endif(CAIRO_FOUND)
@@ -55,7 +55,7 @@ endif(GLIB_FOUND)
 if(ENABLE_ZLIB)
   find_package(ZLIB)
   if(ZLIB_FOUND)
-    set(HAVE_LIBZ ZLIB_FOUND)
+    set(HAVE_LIBZ ${ZLIB_FOUND})
   endif(ZLIB_FOUND)
   set(ENABLE_ZLIB ${ZLIB_FOUND})
 endif(ENABLE_ZLIB)


More information about the poppler mailing list