<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 - CMake Error at cmake/modules/FindLIBOPENJPEG.cmake:41 (check_cxx_source_compiles)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103093">103093</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>CMake Error at cmake/modules/FindLIBOPENJPEG.cmake:41 (check_cxx_source_compiles)
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>jwilk@jwilk.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In some setups (non-GCC compiler + no openjpeg2 + openjpeg installed, but
openjpeg.pc missing + -DENABLE_CPP=NO), running cmake fails with:

<span class="quote">> CMake Error at cmake/modules/FindLIBOPENJPEG.cmake:41 (check_cxx_source_compiles):
>   Unknown CMake command "check_cxx_source_compiles".
> Call Stack (most recent call first):
>   CMakeLists.txt:207 (find_package)</span >

Adding "include(CheckCXXSourceCompiles)" to cmake/modules/FindLIBOPENJPEG.cmake
fixes this.

Tested with Poppler 0.60.0.

Full build log: <a href="https://api.travis-ci.org/jobs/282881123/log.txt">https://api.travis-ci.org/jobs/282881123/log.txt</a></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>