<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [PATCH] CMake: make FindLCMS.cmake cross-aware"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103593">103593</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[PATCH] CMake: make FindLCMS.cmake cross-aware
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>r.hieber@pengutronix.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=135262" name="attach_135262" title="CMake: make FindLCMS.cmake cross-compatible">attachment 135262</a> <a href="attachment.cgi?id=135262&action=edit" title="CMake: make FindLCMS.cmake cross-compatible">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=103593&attachment=135262'>[review]</a>
CMake: make FindLCMS.cmake cross-compatible

Hi,

FindLCMS.make currently complains when being run in cross-compile mode:

  -- Checking for module 'lcms'
  --   Found lcms, version 1.19
  CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the
  following cache variables appropriately:
     LCMS_VERSION (advanced)
     LCMS_VERSION__TRYRUN_OUTPUT (advanced)
  For details see [...]/poppler-0.60.1-build/TryRunResults.cmake
  -- Found lcms version P.LE, [...]/sysroot-target/usr/lib/liblcms.so

I don't know why it complains if it obviously detected the correct version :),
but here is a patch that replaces `try_run(..)` with the version parsing regex
from FindLCMS2.make which only needs to read the header file.

(Yes, I'm still building with the old lcms1... some embedded systems seem to
run forever.)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>