[CMake] problems with tiff library dependencies

Csaba Halász csaba.halasz at gmail.com
Mon Nov 3 14:30:53 EST 2008


Hello cmakers,

TIFF library optionally depends on JPEG and ZLIB, but the FindTIFF
cmake module doesn't seem to handle that.
Unfortunately the dependencies may occur in any of the 4 combinations
(none, jpeg only, zlib only, or both)
See the section titled "Configuring Optional Packages/Support" at
http://www.remotesensing.org/libtiff/build.html.

I have come up with a solution, probably not the best way but good for a start.
Be kind, this my first-ever attempt at a cmake module ;)

-- 
Csaba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindTIFF.cmake
Type: application/octet-stream
Size: 2535 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081103/9b01fca1/attachment.obj>


More information about the CMake mailing list