[cmake] Drop the support of CMake 2.x.
* CMakeLists.txt: Require CMake 3.0 (released on 2014) or newer. The issue #1059 reports the difficulty to support both of CMake 2.x and newer one by single CMakeLists.txt without the inflation of cmake_policy() workarounds. For better maintainability, the support of CMake 2.x is dropped.
This commit is contained in:
parent
6c5522c6f8
commit
bcdfa38692
|
@ -106,10 +106,9 @@
|
||||||
# (this is compatible with the same CMake variables in zlib's CMake
|
# (this is compatible with the same CMake variables in zlib's CMake
|
||||||
# support).
|
# support).
|
||||||
|
|
||||||
# FreeType explicitly marks the API to be exported and relies on the compiler
|
# To minimize the number of cmake_policy() workarounds,
|
||||||
# to hide all other symbols. CMake supports a C_VISBILITY_PRESET property
|
# CMake >= 3 is requested.
|
||||||
# starting with 2.8.12.
|
cmake_minimum_required(VERSION 3.0)
|
||||||
cmake_minimum_required(VERSION 2.8.12)
|
|
||||||
|
|
||||||
if (NOT CMAKE_VERSION VERSION_LESS 3.3)
|
if (NOT CMAKE_VERSION VERSION_LESS 3.3)
|
||||||
# Allow symbol visibility settings also on static libraries. CMake < 3.3
|
# Allow symbol visibility settings also on static libraries. CMake < 3.3
|
||||||
|
|
Loading…
Reference in New Issue