On Thursday 16 June 2011, Doug wrote:
I've not had a problem with this before, but I'm having an odd issue where
cmake is finding libpng when it doesn't exist on an OSX machine.
I'm using Findlibpng.cmake:
include(LibFindMacros)
find_path(LIBPNG_INCLUDE_DIR NAMES png.h PATHS
[ 74%] Built target test_sethandler
make[2]: *** No rule to make target `/usr/local/lib/libpng.dylib', needed
by `tests/na/common/test_common'. Stop.
make[1]: *** [tests/na/common/CMakeFiles/test_common.dir/all] Error 2
The obvious reason is that /usr/local/lib/libpng.dylib doesn't
I've not had a problem with this before, but I'm having an odd issue where
cmake is finding libpng when it doesn't exist on an OSX machine.
I'm using Findlibpng.cmake:
include(LibFindMacros)
find_path(LIBPNG_INCLUDE_DIR NAMES png.h PATHS
${LIBPNG_PKGCONF_INCLUDE_DIRS})