summaryrefslogtreecommitdiff
path: root/cmake
AgeCommit message (Collapse)Author
2022-08-11Make OpenJPEGConfig.cmake relocatable with CMake > 3.0Alex Richardson
Using CMakePackageConfigHelpers, we can generate a relocatable OpenJPEGConfig.config, using the PATH_VARS feature to make CMAKE_INSTALL_LIBDIR relative to the installed location. This change is needed for me when cross-compiling since CMAKE_INSTALL_FULL_LIBDIR is a path inside the sysroot rather than an absolute path to the actual includes. Without this change poppler ends up passing a -I flag that does not exist. This includes fallback code for CMake 2.8, which adds a bit of complexity, since I'm not sure if raising the minimum to 3.0 (now over 8 years old) is acceptable.
2022-08-07CMake: switch to GNUInstallDirs (#1424)Thomas Bracht Laumann Jespersen
* Add GNUInstallDirs for standard installation directories Distributions are given standard variables for already existing hooks. Multiarch libdirs is taken care of automagically. Raises minimum cmake version by a little. * Handle CMAKE_INSTALL_xxx being absolute paths for .pc file generation In some cases the CMAKE_INSTAL_{BIN,MAN,DOC,LIB,INCLUDE}DIR variables may turn out to be absolute paths in which case prepending ${prefix} in the pkg-config .pc files will result in incorrect values. For .pc file generation, figure out if these variables are absolute and omit the prefix in the configured file when so. See: https://github.com/OSGeo/PROJ/commit/ab25e4b7ed9544e668282dcd293cfaaa2e56dbdf
2021-01-07cmake/OpenJPEGConfig.cmake: replace ABSOLUTE by REALPATHFabrice Fontaine
Fix #1174 by replacing ABSOLUTE by REALPATH which will resolve symlinks: https://cmake.org/cmake/help/latest/command/get_filename_component.html Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-01-07Revert "Use INC_DIR for OPENJPEG_INCLUDE_DIRS (fixes uclouvain#1174)"Fabrice Fontaine
This reverts commit 65586374d639cfc0104419992f9022174b412594 which breaks cross-compilation of poppler under buildroot (because of DESTDIR usage).
2020-12-10Use INC_DIR for OPENJPEG_INCLUDE_DIRS (fixes uclouvain#1174)Matthew Sharp
This fixes the case where the cmake file is accessed via a symlink.
2018-08-31The change makes a relative path to header filesLibor Bukata
always correct regardless of the number of sub- directories in OPENJPEG_INSTALL_PACKAGE_DIR variable.
2016-05-02Use lowercase for cmake commands consistenlyJulien Malik
Inspired from https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/Maintenance/HowToCreateTheCMakeCaseConversion.txt This needs vim 7.3 and fails with vim 7.4 This also fixes a number of : - missing empty line at end of files - useless space at end of lines
2016-05-02Ignore clang's summary warningJulien Malik
This assumes prior text has matched some other warning expression. This reduces the warnings reported for clang build on the dashboard, which were caused only by the "XXX warnings generated." message. For some reason they were not reported when not using ctest launchers. This commit allows to confidently use ctest launchers to improve dashboard reports.
2015-09-29Fix typos in comments and stringStefan Weil
Most typos were found by codespell. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-07-30Add jpylyzer tests for JP2 compressionmayeut
2015-07-04Fix CMake warning when testing for LFSmayeut
Update issue #442
2014-03-27[trunk] Properly copy/paste code from the autotoolsMathieu Malaterre
gcc correctly fails compiling this code, I needed to move the code outside the main function to get the error. This actually match the autotools (incorrect) code. We'll see how they fix this code in future release. This make the code compatible with previous openjpeg version and remove C99 requirement. Fixes issue 316
2014-03-26[trunk] Make sure to use long long (this is not C89). However this should be ↵Mathieu Malaterre
ok on most compilers nowadays Update issue 316
2014-03-10[trunk] Remove old warnings about deprecated APIMathieu Malaterre
2014-02-26[trunk] regex would not be used to remove java deprecation warning from ↵Mathieu Malaterre
dashboard
2014-02-25[trunk] deprecationg warning issued by java compiler should be ignoredMathieu Malaterre
2014-02-07Update kakadu cmake moduleMathieu Malaterre
2013-03-13[trunk] use the home made macro to ensure the existence of some include fileMickael Savinaud
2013-03-03[trunk] remove some unused variable from opj_config and rename other one ↵Mickael Savinaud
with opj_ prefix
2012-10-01[trunk] Requires CMake 2.8.2 at leastMathieu Malaterre
2012-10-01[trunk] remove warnings generated by all project in thirdpartiesMathieu Malaterre
2012-10-01[trunk] Discard warnings from tiff packageMathieu Malaterre
2012-09-28[trunk] Start FolderReorgProposal taskMathieu Malaterre
Update issue 177