[CMake] [patch] cmake-2.8.1 and png-1.4.2

Thomas Klausner tk at giga.or.at
Sat Jun 19 18:34:51 EDT 2010


Hi!

I've updated png in pkgsrc to 1.4.2 and had to fix some programs to
compile against that version.

cmake didn't find the png library at all, since it was renamed
(again). The attached patch fixes the problem, please include it in
the next release.

Thanks,
 Thomas
-------------- next part --------------
$NetBSD: patch-ad,v 1.7 2010/06/13 22:44:03 wiz Exp $

--- Modules/FindPNG.cmake.orig	2010-04-06 14:45:31.000000000 +0000
+++ Modules/FindPNG.cmake
@@ -33,7 +33,7 @@ if(ZLIB_FOUND)
   /usr/local/include/libpng             # OpenBSD
   )
 
-  set(PNG_NAMES ${PNG_NAMES} png libpng png12 libpng12)
+  set(PNG_NAMES ${PNG_NAMES} png libpng png12 libpng12 png14 libpng14)
   find_library(PNG_LIBRARY NAMES ${PNG_NAMES} )
 
   if (PNG_LIBRARY AND PNG_PNG_INCLUDE_DIR)


More information about the CMake mailing list