CMake's FIND_PACKAGE and libtiff
Summary
When building a project that has libtiff as a dependency (XCSoar which depends on libgeotiff, which in turn depends on libtiff), there was an error by cmake that TIFFOpen could not be found. Investigating the issue, I realized that cmake was looking for libtiff using FIND_PACKAGE and found it, but only the variables TIFF_FOUND, TIFF_DIR, TIFF_VERSION were set, the variable TIFF_LIBRARIES was not, but was required. I could finish the building process only by manually setting the TIFF_LIBRARIES variable.
Version
4.5.1
Steps to reproduce
Following the XCSoar building instructions on Linux for Android (https://xcsoar.readthedocs.io/en/latest/build.html)
Platform
Ubuntu 22.04
Edited by Anton Lastochkin