diff options
author | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2022-02-20 23:55:32 +0900 |
---|---|---|
committer | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2022-02-21 10:44:42 +0900 |
commit | bcdfa38692d590dda5bc9e4334842abe92ec0ba5 (patch) | |
tree | 6ac1d853b68fda1aad4b98e8838ea012bd15345d | |
parent | 6c5522c6f843532e7a1e86f79856d703349f5e94 (diff) | |
download | freetype2-bcdfa38692d590dda5bc9e4334842abe92ec0ba5.tar.gz |
[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.
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 85babddbe..9e66cde67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,10 +106,9 @@ # (this is compatible with the same CMake variables in zlib's CMake # support). -# FreeType explicitly marks the API to be exported and relies on the compiler -# to hide all other symbols. CMake supports a C_VISBILITY_PRESET property -# starting with 2.8.12. -cmake_minimum_required(VERSION 2.8.12) +# To minimize the number of cmake_policy() workarounds, +# CMake >= 3 is requested. +cmake_minimum_required(VERSION 3.0) if (NOT CMAKE_VERSION VERSION_LESS 3.3) # Allow symbol visibility settings also on static libraries. CMake < 3.3 |