aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)Author
2018-09-18Rename nad/ directory as data/Even Rouault
2018-09-15Bump version numbers after 5.2.0 releaseKristian Evers
2018-09-11Specify c++11 for Intel compilersMike Toews
Also, workaround issue: CMake Error at test/unit/CMakeLists.txt:7 (string): string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command.
2018-09-10Update ABI version for 5.2 releaseKristian Evers
2018-06-20Raise version number to 5.2.0 in CMake configKristian Evers
Add instruction to HOWTO-RELEASE as well so it is remembered in the future.
2018-06-08CMake: bump PROJ version to 5.1.0Mateusz Loskot
Align version with the one defined in configure.ac.
2018-06-07Add googletest 1.8.0 framework in test/googletest, and use it with autoconf ↵Even Rouault
builds only (CMake integration to be done)
2018-06-05Remove include(CTest) as unnecessaryMateusz Loskot
The library does not require CDash server, so there is no point in generating all testing configurations (ie. Experimental, Continuous, Nightly) CTest also adds implicit BUILD_TESTING option (default ON) which is not used by the library - there is custom PROJ_TESTS.
2018-05-30Enable c++ compilation with autotools and cmake, hardened compilation flags ↵Even Rouault
and add catch2 framework Hardened compilation flags come from GDAL' configure.ac and are 'combat proven' Dummy test added just to demonstrate catch2 based tests work.
2018-05-24Fix libtool versioning, using the proper number for 'age'Kristian Evers
2018-05-24Update version numbers for 5.1.0 releaseKristian Evers
2018-04-23Merge pull request #937 from kbevers/c99-math-moduleKristian Evers
Collect custom C99 math functions in proj_math.h
2018-04-22Collaps multiline strings to not trip up CMake2Kristian Evers
2018-04-16Collect custom C99 math functions in proj_math.hKristian Evers
We are relying more and more on C99 math functions. On C89 systems where those functions are not available our own custom versions of those functions are used instead. So far these has been spread across the code base. This commit gathers them in the same file and introduces the proj_math.h header. The build system checks for C99 math functions. If not found the proj_math.h header make sure that C99 functions are defined as their pj_ equivalent. Ideally proj_math.h is included instead of math.h. This removes the need for any checks against HAVE_C99_MATH in the code making it easier to read. For this commit the functions hypot, log1p and asinh has been taken care of.
2018-03-26Restore PROJECT-NAME as PROJ4Mike Toews
2018-03-26Rename CMake infrastructure to remove 4mwtoews
2018-03-24Don't set -std=c89 in CMakeLists.txtAaron Puchert
This allows us to take advantage of newer features when they are available. However, builds on Travis still use -std=c89 to ensure C89 compatibility. Locally this can be achieved with either * cmake -DCMAKE_C_STANDARD=90 .. * cmake -DCMAKE_C_FLAGS='-std=c89' .. * C_FLAGS='-std=c89' cmake .. We also reorder the warning flags: they are all part of the standard build now, but -Werror is only applied on Travis. Fixes #892.
2018-03-23If HAVE_C99_MATH, define pj_is_nan as isnan.Charles Karney
Extend HAVE_C99_MATH checks in CMakeLists.txt and configure.ac to include test for C99 function isnan.
2018-03-20For the Intel compiler use "-fp-model precise" on all platforms.Charles Karney
2018-03-17Patch 1.49.3 for geodesic package.Charles Karney
Set flags for Intel compiler to prevent incorrect optimization of arithmetic expressions #826. Guard against nans in sincosdx #834. Issue #831 is not addressed here (need more information...).
2018-02-01Bump various version numbers in preparation for v. 5.0.0Kristian Evers
2018-01-09Add gie tests to CMake testing facilityKristian Evers
2017-12-14Suppress warning C4996 centrally in CMakeLists.txtCharles Karney
2017-12-07Squelch Visual Studio's obnoxious warnings about sprintf being unsafe.Charles Karney
Also set policy CMP0054 to stop a cmake warning.
2017-12-06CMakeLists.txt: fix typo, copysigna -> copysign.Charles Karney
2017-11-29Remove the last remains of the internal selftestKristian Evers
2017-11-10Ensure C89 compliance and enable more warnings (#650)Aaron Puchert
* Ensure C89 compliance and enable more warnings According to the contributing guidelines, the library is developed strictly in ANSI C 89. However, this is not enforced. Additionally, we enable more warnings: apart from -Wall and -Wextra we enable a warning that makes sure all enumeration values are covered in a switch statement. When compiling with Clang, we also turn on the warnings -Wc99-extensions and -Wc11-extensions. * Enable all warnings that are used on Travis This makes it easier to notice problems before pushing.
2017-09-25fix #560 install cmake config file to lib and use GNUInstallDirs on Unix (#561)Nicolas David
* fix #560 install proj4-config.cmake to defaut path * add some variable and cmake option to specify where the cmake config file should be installed. * change project_root_dir use in project-config.cmake.in variable from hard coded path to computed path with file(RELATIVE_PATH) function. * Still use the old project-config.cmake/configure_file way of generate config file. A cleaner way could be to use the modern cmake export(target ..) * use GNUInstallDirs for default unix install path
2017-08-06Fix typo in CMakeLists.txtCharles Karney
2017-08-06Add tests for C99 math functions, hypot, atanh, cbrt, etc.Charles Karney
This tests whether the functions are declared in <math.h>. If they are, then -DHAVE_C99_MATH=1 is added to the C flags. The intention is that this flag is only seen when building proj.4 and shouldn't be referenced in any of the installed include files. The next update to geodesic.c will use this flag. Left unaddressed is what to do if HAVE_C99_MATH is 0. The strategy in geodesic.c is to assume that the missing functions will need to be defined explicitly. A less safe alternative is to assume that the functions are in fact available in libm and that all that needs to be done is to declare the functions.
2016-12-12Add a scripts/fix_typos.sh script and correct reported errorsEven Rouault
2016-08-22Changed self-test build behaviour from opt-out to opt-inKristian Evers
2016-08-15increment version numbers for 4.9.3RC1Howard Butler
2016-02-15Upgrade geodesic library from GeographicLib 1.46.Charles Karney
* upgrade geodesic.[ch3] * add test suite geodtest.c and invoke via cmake's add_test * increment version to 4.9.3 and library version to 11.0.0
2015-09-10increment libtool versioning to 10:0:0 to account for PVALUE symbol rename #273Howard Butler
2015-09-10check and set HAVE_PTHREAD_MUTEX_RECURSIVE in CMake for #303Howard Butler
2015-09-08Increment version to 4.9.2 in preparation for releaseHoward Butler
2015-03-03Append _d to debug versions of library and tools so that release and debug ↵Charles Karney
versions can be installed together git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2645 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-22More CMake churn #264Howard Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2632 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-21bump SOVERSION to 9:0:0 for 4.9.1 release (removed symbols from PJ_healpix)Howard Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2616 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-21adapt Charles Karney's patches for smoother CMake #258Howard Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2614 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-174.9.1 release preparation -- update version and NEWSHoward Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2610 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-17#256: CMake tweaksHoward Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2608 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-17apply #248 for CMake healpix compilation typoHoward Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2607 4e78687f-474d-0410-85f9-8d5e500ac6b2
2014-09-13more CMake-related dist fixups #243Howard Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2531 4e78687f-474d-0410-85f9-8d5e500ac6b2
2014-09-13mostly working CMake configuration #243Howard Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2525 4e78687f-474d-0410-85f9-8d5e500ac6b2