cmake: look for png.h, not libpng.h
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 20 Jan 2016 18:00:25 +0000 (13:00 -0500)
committerSean Paul <seanpaul@google.com>
Wed, 20 Jan 2016 18:24:30 +0000 (13:24 -0500)
libpng ships png.h, so look for that instead of libpng.h

Change-Id: Ifdbe0fca9e5b93973653a94e6ab800f1bfad8ecf
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
CMakeLists.txt

index 9760d72..da3e0ae 100644 (file)
@@ -66,7 +66,7 @@ endif ()
 include_directories(${ZLIB_INCLUDE_PATH})
 
 # libpng
-find_path(PNG_INCLUDE_PATH     libpng.h)
+find_path(PNG_INCLUDE_PATH     png.h)
 find_library(PNG_LIBRARY       png)
 
 if (NOT PNG_INCLUDE_PATH OR NOT PNG_LIBRARY)