[Poppler-bugs] [Bug 103093] New: CMake Error at cmake/modules/FindLIBOPENJPEG.cmake:41 (check_cxx_source_compiles)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 4 07:30:33 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103093

            Bug ID: 103093
           Summary: CMake Error at cmake/modules/FindLIBOPENJPEG.cmake:41
                    (check_cxx_source_compiles)
           Product: poppler
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: jwilk at jwilk.net

In some setups (non-GCC compiler + no openjpeg2 + openjpeg installed, but
openjpeg.pc missing + -DENABLE_CPP=NO), running cmake fails with:

> 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)

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

Tested with Poppler 0.60.0.

Full build log: https://api.travis-ci.org/jobs/282881123/log.txt

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20171004/55ff698f/attachment.html>


More information about the Poppler-bugs mailing list