If pkg-config is available libavcodec api version is checked and
cmake fails if the required version isn't available.
In case pkg-config isn't available a notification message with the
required version is printed.
This fixes/prevents #740.
* enable_cmake_compat to enable compatibility for specific cmake versions
* added required files for 2.8.2 and 2.8.6 (taken from a recent cmake version)
cmake/compat_2.8.3 contains files required for cmake versions < 2.8.3
and CheckCmakeCompat includes them if necessary.
CMakeParseArguments.cmake and FindPackageHandleStandardArgs.cmake are
taken from the modules shipped with cmake.
If pkg-config is available libavcodec api version is checked and
cmake fails if the required version isn't available.
In case pkg-config isn't available a notification message with the
required version is printed.
This fixes/prevents #740.
CMake allows to define variables (e.g. -D) even if they are not defined as options.
If a build feature requires a cmake version > 2.6 build might fail
therefore a check is required.
Check for WITH_MONOLITHIC_BUILD requirements added (prevents issue #724)
On Gentoo Linux, CMAKE_INSTALL_LIBDIR is passed as an absolute path,
which caused plugins to be installed in /usr/usr/lib/freerdp.
The new logic better emulates the behavior of the real GNUInstallDirs module.
Now --version prints something like "This is FreeRDP version 1.0.1 (git
1.0.1-710-g90ec2)". Having a git commit id helps to identify builds and eases
debuggin.
The downside is that GetGitRevisionDescription retriggers a cmake
re-configuration after each git commit. But thats the only way to get correct
version informations without having git hooks or similar.
GetGitRevisionDescription is based on Ryan Pavlik cmake Modules.