How to tell CMake which libpng.dylib to use?

Ryan Schmidt ryandesign at macports.org
Mon Jan 21 17:35:07 PST 2013


On Jan 21, 2013, at 16:24, Mojca Miklavec wrote:

> Thank you very much. The magic turned out to give the correct result:
>    -DPNG_LIBRARY=/opt/local/lib/libpng.dylib \
>    -DPNG_PNG_INCLUDE_DIR=/opt/local/include
> 
> (The only thing I wonder is: isn't there some way to set those
> variables "globally" somewhere, so that it doesn't have to be repeated
> by every single program/port? ;)

The program you're currently investigating calls those settings PNG_LIBRARY and PNG_PNG_INCLUDE_DIR but other projects might call them something different.



More information about the macports-dev mailing list