<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">What is your dependency provider for
      TIFF?<br>
      Are you aware of modern CMake using "config" packages in addition
      to traditional Find modules?<br>
      Could you share the CMake call stack of the actual error message?</div>
    <p>This would help to know where to start.</p>
    <p>Kai</p>
    <div class="moz-cite-prefix">Am 09.12.25 um 01:03 schrieb Simon Eves
      via gdal-dev:<br>
    </div>
    <blockquote type="cite"
cite="mid:DS2PR12MB9662AAEBB411B16CC6F4A192DEA2A@DS2PR12MB9662.namprd12.prod.outlook.com">
      <div class="elementToProof">
        Dear Group,</div>
      <div class="elementToProof">
        <br>
      </div>
      <div class="elementToProof">
        Our software product currently builds with CMake 3.26.5, PROJ
        9.6.0, GDAL 3.10.3, TIFF 4.7.0, GeoTIFF 1.7.4 etc.</div>
      <div class="elementToProof">
        <br>
      </div>
      <div class="elementToProof">
        I am obliged to update to at least CMake 3.30.4 in order to be
        able to use the CMake scripts for a new dependent library, which
        I am told has enough build trickiness that trying to use it
        without those scripts will be a major PITA.</div>
      <div class="elementToProof">
        <br>
      </div>
      <div class="elementToProof">
        Turns out that the newer CMake is a lot more demanding in terms
        of sub-dependency
        <span>find_package()</span> calls. For example, the
        <span>find_package(TIFF REQUIRED)</span> in PROJ fails because
        it can't find LZMA, ZSTD, ZLIB, WebP and CMath. Adding
        <span>find_package()</span> calls for those before the one for
        TIFF seems to work, but some of those only work if you have the
        matching
        <span>Find<foo>.cmake</span> scripts, many of which aren't
        provided in the standard CMake set, but have to be copied or
        referenced from those provided by TIFF.</div>
      <div class="elementToProof">
        <br>
      </div>
      <div class="elementToProof">
        Either that, or it's not clear to me which version of the Find
        script or library name is required. For example, TIFF apparently
        requires
        <span>lzma::lzma</span> but there isn't a script for that, only
        for
        <span>LibLZMA::LibLZMA</span>.</div>
      <div class="elementToProof">
        <br>
      </div>
      <div class="elementToProof">
        Does anyone have any tricks or recommendations on how to resolve
        this in the cleanest manner. I am trying to hack through it by
        patching (say) the various CMakeLists.txt files for the above
        projects to add the now-required
        <span>find_package()</span> calls, and copying scripts from the
        TIFF deployment into CMake Modules but it seems very wrong.</div>
      <div class="elementToProof">
        <br>
      </div>
      <div class="elementToProof">
        I don't see anything in the more recent release notes for any of
        those packages which indicates that there is a newer version
        which is more compatible with the newer CMake. Most of the
        issues stem from TIFF, where the only newer version is 4.7.1
        which certainly does not help.</div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre wrap="" class="moz-quote-pre">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>