osrm-backend/cmake
Daniel J. Hofmann 809bdb7c1f Fixes version generation, no longer derives version on git tags.
We were stuck on the 4.5.0 tag from develop, since we searched for the
latest tag, but release tags are done on the master branch.

This commit rips out all the code for deriving the version on git tags.

Instead, we define major, minor, and patch versions in the CMakeLists
and then pass it on to:

- the `libosrm.pc` `pkg-config` file

- a `version.hpp` header that makes use of the preprocessor's string
  concatenation to provide an easy way for generating version string
  literals such as "v4.8.0".

That is, in the source code please now use the following defines:

    #define OSRM_VERSION_MAJOR "@OSRM_VERSION_MAJOR@"
    #define OSRM_VERSION_MINOR "@OSRM_VERSION_MINOR@"
    #define OSRM_VERSION_PATCH "@OSRM_VERSION_PATCH@"

    #define OSRM_VERSION "v" OSRM_VERSION_MAJOR "." OSRM_VERSION_MINOR "." OSRM_VERSION_PATCH
2015-09-30 18:22:25 +02:00
..
check_luabind.cmake propagate Lua include dir when compile-checking Luabind, fixes #1196 2014-09-25 12:58:23 +02:00
CheckCXXCompilerFlag.cmake activate LTO on platforms that support it, ie. most recent compilers 2014-04-01 18:11:45 +02:00
cmake_options_script.py Export compile commands 2013-08-14 11:57:54 +02:00
CPackDebianConfig.cmake Remove protobuf dependencies from build system 2015-08-31 16:54:22 +02:00
FindDebArch.cmake allow building of packages 2014-08-11 16:16:56 +02:00
FindLua52.cmake CMakeLists.txt: Lua5.2 support. 2013-09-11 17:25:33 +02:00
FindLuabind.cmake Several lookup fixes and fingerprinting of files with input IO, thx @alex85k 2013-07-18 14:11:45 +02:00
FindLuaJIT.cmake fix linking on Ubuntu 13.10 2013-11-20 16:22:39 +01:00
FindSTXXL.cmake reverting premature revert 2013-11-12 17:39:24 -05:00
FindTBB.cmake Port extractor to TBB 2014-05-21 21:49:22 +02:00
FingerPrint-Config.cmake Only replace fingerprint file when MD5 changes. Avoids rebuilding several things if nothing has actually changes, as cmake is only looking at timestamps. 2015-09-04 14:07:40 +02:00
pkgconfig.in Fixes version generation, no longer derives version on git tags. 2015-09-30 18:22:25 +02:00
postinst.in allow building of packages 2014-08-11 16:16:56 +02:00