mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 06:49:38 -04:00
depends: add zeromq cmake minimum patch
This commit is contained in:
parent
cbbc229adf
commit
a522ef1542
2 changed files with 21 additions and 1 deletions
|
@ -7,6 +7,7 @@ $(package)_patches = remove_libstd_link.patch
|
|||
$(package)_patches += macos_mktemp_check.patch
|
||||
$(package)_patches += builtin_sha1.patch
|
||||
$(package)_patches += fix_have_windows.patch
|
||||
$(package)_patches += cmake_minimum.patch
|
||||
|
||||
define $(package)_set_vars
|
||||
$(package)_config_opts = --without-docs --disable-shared --disable-valgrind
|
||||
|
@ -20,7 +21,8 @@ define $(package)_preprocess_cmds
|
|||
patch -p1 < $($(package)_patch_dir)/remove_libstd_link.patch && \
|
||||
patch -p1 < $($(package)_patch_dir)/macos_mktemp_check.patch && \
|
||||
patch -p1 < $($(package)_patch_dir)/builtin_sha1.patch && \
|
||||
patch -p1 < $($(package)_patch_dir)/fix_have_windows.patch
|
||||
patch -p1 < $($(package)_patch_dir)/fix_have_windows.patch && \
|
||||
patch -p1 < $($(package)_patch_dir)/cmake_minimum.patch
|
||||
endef
|
||||
|
||||
define $(package)_config_cmds
|
||||
|
|
18
depends/patches/zeromq/cmake_minimum.patch
Normal file
18
depends/patches/zeromq/cmake_minimum.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
Set a more sane cmake_minimum_required.
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,12 +1,7 @@
|
||||
# CMake build script for ZeroMQ
|
||||
+cmake_minimum_required(VERSION 3.16)
|
||||
project(ZeroMQ)
|
||||
|
||||
-if(${CMAKE_SYSTEM_NAME} STREQUAL Darwin)
|
||||
- cmake_minimum_required(VERSION 3.0.2)
|
||||
-else()
|
||||
- cmake_minimum_required(VERSION 2.8.12)
|
||||
-endif()
|
||||
-
|
||||
include(CheckIncludeFiles)
|
||||
include(CheckCCompilerFlag)
|
||||
include(CheckCXXCompilerFlag)
|
Loading…
Add table
Reference in a new issue