cmake: Use FindPNG instead of find_path/find_library
authorChad Versace <chad.versace@intel.com>
Fri, 2 Dec 2016 23:43:08 +0000 (15:43 -0800)
committerGurchetan Singh <gurchetansingh@google.com>
Tue, 17 Oct 2017 17:09:50 +0000 (10:09 -0700)
commitdf628593e05435fc7664b0f33ecffffc582baf34
treeebae0099b2b39d41a46c9f478df275cae583e4f9
parentf8236f51392e6d7b6dcfe8eb8205be35792b7a1b
cmake: Use FindPNG instead of find_path/find_library

dEQP's use of find_path() and find_library() failed to find the png
paths if the paths contained a version suffix. For example, they failed
to find /usr/include/libpng12/png.h and /usr/lib64/libpng12.so.

CMake ships a standard FindPNG module that does not get confounded by
version-suffixed paths.  The module also respects cross-compilation
environments.

Change-Id: I636be9430697a9d883040b53e79767466fbd2ad5
Signed-off-by: Chad Versace <chad.versace@intel.com>
CMakeLists.txt