path: root/cmake
AgeCommit message (Collapse)AuthorFilesLines
2020-07-03Run clang-formatAlbert Astals Cid1-4/+3
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format -i {} \; If you reached this file doing a git blame, please see README.contributors (instructions added 2 commits in the future to this one)
2019-10-06Do not override user-defined CMAKE_C[XX]_FLAGS for clangEven Rouault1-0/+15
337585e3d881c2c2c9099888b09902119dc05bf8 unconditionnaly overrides any potential user-defined CMAKE_C[XX]_FLAGS. This for example breaks the GDAL oss-fuzz builds which build Poppler from source (see So do the same as the GCC path where we save input CMAKE_C[XX]_FLAGS and reinject them in custom CMAKE_C{XX}_FLAGS_{build_configuration} The values are identical to GCC, execpt for the _DEBUG configuration where we remove '-O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline' since clang does not support -fno-reorder-blocks and -fno-schedule-insns, so it is likely better to disable any optimization for proper debugging.
2019-10-03Set our default cxx and c flags to clang tooAlbert Astals Cid1-0/+3
This code needs a bit of refactoring to share most of it between gcc and clang
2019-06-21Enable shadow warning by defaultAlbert Astals Cid1-2/+2
It's always a bad idea having multiple variables with the same name, so complain if that happens
2019-05-27install pkg-config pc files if pkg-config is foundzdenop1-4/+2
2019-01-19Fix link in FreeBSDAlbert Astals Cid2-2/+10
2019-01-16Remove unused MacroPushRequiredVars.cmakeVolker Krause1-47/+0
This is nowadays also provided by CMake itself via CMakePushCheckState.
2019-01-05msys2: support enabling NSS on mingw-w64Alexey Pavlov1-2/+2
2018-10-23Enable searching for GTK on Windows.Elliott Sales de Andrade1-6/+3
There's no reason it can't be available (either natively, or when cross-compiling with mingw).
2018-10-23We don't need the LCMS find module anymoreAlbert Astals Cid1-84/+0
We only support lcms2 for a while
2018-10-05cmake: Set the clang warnings based on the gcc onesAlbert Astals Cid1-0/+22
2018-08-16Use OpenJpeg cmake config file instead of pkgconfigAlbert Astals Cid1-22/+0
2018-05-04FindLIBOPENJPEG2.cmake: Remove cache codeAlbert Astals Cid1-15/+7
It wasn't working since the if mentioned LIBOPENJPEG2_INCLUDE_DIR instead of LIBOPENJPEG2_INCLUDE_DIRS and when fixing the typo it broke the build because we were not defining USE_OPENJPEG2, so better just remove the broken if code
2018-03-28glib: less deprecated callsAlbert Astals Cid1-1/+1
And increate gdk pixbuf requirement to the version i think we actually require
2018-01-09Enable no-missing-field-initializersAlbert Astals Cid1-1/+1
2018-01-08Run clang-tidy with modernize nullptrAlbert Astals Cid1-1/+1
Also add two enum values in the qt5 frontend to representate no flags Also mark glib/gtk/cairo system includes so that gcc doesn't report the issues in those headers
2018-01-08Seems we don't need to set this cmake policies to OLDAlbert Astals Cid1-8/+0
builds fine without warnings
2017-12-14Remove unused FindLIBOPENJPEG.cmakeAlbert Astals Cid1-64/+0
2017-12-01Remove the Qt4 frontendAlbert Astals Cid1-1311/+0
2017-11-08CMake: add the custom buildtests target only onceRoland Hieber1-4/+4
Make BUILDTESTS_ADDED a global property, so the `buildtests` target gets added only once. As far as I understood, this seems to fulfil the requirements of CMP0002. Bug #103003
2017-10-31Install pkg-config files also on mingwSandro Mani1-2/+2
2017-10-31cmake: support GNUInstallDirsEmilio Pozuelo Monfort1-2/+2
This allows users to set various install directories, e.g. libdir, includedir, mandir... Bug #103211
2017-10-21Fix remaining -Wundef warningsAdrian Johnson1-1/+1
and make -Wundef a default warning
2017-10-21Fix warning: implicit declaration of function ‘localtime_r’Adrian Johnson1-1/+1
poppler/glib/demo/utils.c:488:20: warning: implicit declaration of function ‘localtime_r’ [-Wimplicit-function-declaration] if (time == 0 || !localtime_r (&time, &t)) return NULL; ^~~~~~~~~~~ The c files also need the -D_DEFAULT_SOURCE feature macro to enable non standard C++11 functons.
2017-10-05FindLIBOPENJPEG.cmake: Add CheckCXXSourceCompilesAlbert Astals Cid1-0/+2
Since we use check_cxx_source_compiles
2017-09-30Remove the gir-girs targetAlbert Astals Cid1-1/+0
It depends on the same files (subset) as the gir-typelibs target meaning that sometimes when doing a parallel build you'd get the two commands trying to generate the same file at once and bad things happen
2017-09-16Fix missing-declarations warningsAlbert Astals Cid1-1/+1
... and add it to default warning set
2017-09-16cmake: restructure the warnings into a "default" and "extra" groupAdrian Johnson1-8/+24
Most of the previous warnings are now in default. Extra warnings that should be fixed but currently result in a lot of warnings are in the extra group. The old no/yes/kde COMPILE_WARNINGS option has been replaced with the boolean option EXTRA_WARN (default off) to enable the extra warnings.
2017-09-13cmake: ensure user cflags/cxxflags are appended to endAdrian Johnson1-20/+24
2017-09-03Fix cygwin 32-bit compileAdrian Johnson1-1/+1
poppler/goo/ In function ‘GBool openTempFile(GooString**, FILE**, const char*)’: poppler/goo/ error: ‘mkstemp’ was not declared in this scope fd = mkstemp((*name)->getCString()); ^ poppler/goo/ error: ‘fdopen’ was not declared in this scope if (fd < 0 || !(*f = fdopen(fd, mode))) { ^ poppler/goo/ In function ‘int Gfseek(FILE*, Goffset, int)’: poppler/goo/ error: ‘fseeko’ was not declared in this scope return fseeko(f, offset, whence); ^ poppler/goo/ In function ‘Goffset Gftell(FILE*)’: poppler/goo/ error: ‘ftello’ was not declared in this scope return ftello(f); ^
2017-08-31cmake: enable glib for windows tooAlbert Astals Cid1-6/+3
There's no need to not having it enabled
2017-03-09Add override markersAlbert Astals Cid1-0/+4
2016-09-28Revert "pdfinfo: add -dests option to print named destinations"Adrian Johnson1-1/+1
This reverts commit 183dbf3249e8db2398b63a749eb010bc0a89dc35.
2016-09-17pdfinfo: add -dests option to print named destinationsAdrian Johnson1-1/+1
Bug 97262
2016-03-02Merge remote-tracking branch 'origin/signatureHandling'Albert Astals Cid1-0/+22
2015-12-28Make detection of version one of OpenJPEG prefer a pkg-config manifest if it ↵Adam Reichold1-14/+23
2015-09-14Core: Support for digital signaturesAndré Guerreiro1-0/+22
Coded with André Esser <> Bug #16770
2015-09-06cmake: Allow configuring SHARE_INSTALL_DIRHeiko Becker1-1/+1
This is helpful on a multiarch layout where the prefix is /usr/${host} but arch-independent files should still be installed to /usr/share. Bug 90293
2015-01-04Cmake support for openjpeg2Adrian Johnson1-0/+30
With some tweaks from Albert
2014-02-10increase gtk3 dependencyAlbert Astals Cid1-1/+1
gtk_tree_view_set_activate_on_single_click was introduced in 3.8
2014-01-26Use c99 for the c compilerAlbert Astals Cid1-0/+1
2014-01-14Do not define -ansiAlbert Astals Cid1-5/+0
We are using long long that is not defined in ansi, so forcing ansi strictness does not make any sense. Bug #72499
2013-06-18If qmake gives us a Qt5 qmake try with qmake4 and qmake-qt4Albert Astals Cid1-23/+39
2013-05-27Fix big file support in cmakeAlbert Astals Cid2-0/+58
Tested by Fabio
2013-03-18cmake: drop search of gthread-2.0 and gio-2.0 from GTKPino Toscano1-1/+1
this matches what is done in the autoconf counterpart
2013-03-18cmake: search also for gio-2.0 as GLIB libraryMichael Weiser1-1/+2
2012-05-21Compile++Albert Astals Cid1-4/+4
2012-02-20cmake: support for lcms2Pino Toscano1-0/+73
followup of e48c22d3b70412015b9cc07a9a6ce07845274e13 also for the CMake build system, importing the FindLCMS2.cmake from kdelibs
2012-02-06Merge branch 'master' into xpdf303mergeAlbert Astals Cid2-0/+15
Conflicts: poppler/ poppler/CairoOutputDev.h poppler/ poppler/ poppler/ poppler/ poppler/GlobalParams.h poppler/