Re: [CMake] How does cmake find libraries?

2011-06-16 Thread Alexander Neundorf
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

Re: [CMake] How does cmake find libraries?

2011-06-16 Thread John Drescher
   [ 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

[CMake] How does cmake find libraries?

2011-06-15 Thread Doug
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})