Bug 103093 - CMake Error at cmake/modules/FindLIBOPENJPEG.cmake:41 (check_cxx_source_compiles)
Summary: CMake Error at cmake/modules/FindLIBOPENJPEG.cmake:41 (check_cxx_source_compi...
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-04 07:30 UTC by Jakub Wilk
Modified: 2017-10-05 16:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jakub Wilk 2017-10-04 07:30:33 UTC
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
Comment 1 Albert Astals Cid 2017-10-05 16:52:31 UTC
Fixed, take into account openjpeg1 support is going away in december


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.