File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ $(package)_download_path=https://download.savannah.gnu.org/releases/$(package)
4
4
$(package)_file_name =$(package ) -$($(package ) _version) .tar.xz
5
5
$(package)_sha256_hash =8bee39bd3968c4804b70614a0a3ad597299ad0e824bc8aad5ce8aaf48067bde7
6
6
$(package)_build_subdir =build
7
+ $(package)_patches += cmake_minimum.patch
7
8
8
9
define $(package)_set_vars
9
10
$(package ) _config_opts := -DCMAKE_BUILD_TYPE=None -DBUILD_SHARED_LIBS=TRUE
@@ -12,6 +13,10 @@ define $(package)_set_vars
12
13
$(package ) _config_opts += -DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE
13
14
endef
14
15
16
+ define $(package)_preprocess_cmds
17
+ patch -p1 < $($(package ) _patch_dir) /cmake_minimum.patch
18
+ endef
19
+
15
20
define $(package)_config_cmds
16
21
$($(package ) _cmake) -S .. -B .
17
22
endef
Original file line number Diff line number Diff line change
1
+ build: set minimum required CMake to 3.12
2
+
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -97,7 +97,7 @@
6
+ # FreeType explicitly marks the API to be exported and relies on the compiler
7
+ # to hide all other symbols. CMake supports a C_VISBILITY_PRESET property
8
+ # starting with 2.8.12.
9
+ - cmake_minimum_required(VERSION 2.8.12)
10
+ + cmake_minimum_required(VERSION 3.12)
11
+
12
+ if (NOT CMAKE_VERSION VERSION_LESS 3.3)
13
+ # Allow symbol visibility settings also on static libraries. CMake < 3.3
You can’t perform that action at this time.
0 commit comments