cmake-bootstrap: update to 3.20.1.
This commit is contained in:
parent
9e39c5dc66
commit
9be8514270
2 changed files with 44 additions and 5 deletions
|
@ -1,8 +1,7 @@
|
|||
# Template file for 'cmake-bootstrap'
|
||||
pkgname=cmake-bootstrap
|
||||
reverts="3.20.0_1"
|
||||
version=3.19.7
|
||||
revision=2
|
||||
version=3.20.1
|
||||
revision=1
|
||||
wrksrc=cmake-$version
|
||||
bootstrap=yes
|
||||
build_style=configure
|
||||
|
@ -17,7 +16,7 @@ maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|||
license="LGPL-2.1-or-later, BSD-3-Clause"
|
||||
homepage="https://www.cmake.org"
|
||||
distfiles="https://www.cmake.org/files/v${version%.*}/cmake-${version}.tar.gz"
|
||||
checksum=58a15f0d56a0afccc3cc5371234fce73fcc6c8f9dbd775d898e510b83175588e
|
||||
checksum=3f1808b9b00281df06c91dd7a021d7f52f724101000da7985a401678dfe035b0
|
||||
conflicts="cmake>=0"
|
||||
|
||||
CFLAGS="-DCMAKE_USE_SYSTEM_ZLIB -DCMAKE_USE_SYSTEM_LIBARCHIVE"
|
||||
|
@ -37,7 +36,6 @@ post_patch() {
|
|||
rm -rf Utilities/cmexpat
|
||||
rm -rf Utilities/cmlibarchive
|
||||
rm -rf Utilities/cmliblzma
|
||||
rm -rf Utilities/cmlibrhash
|
||||
rm -rf Utilities/cmnghttp2
|
||||
rm -rf Utilities/cmzlib
|
||||
rm -rf Utilities/cmzstd
|
||||
|
|
41
srcpkgs/cmake/patches/test-none.patch
Normal file
41
srcpkgs/cmake/patches/test-none.patch
Normal file
|
@ -0,0 +1,41 @@
|
|||
From ce1cadd35a26bd44879675581d8e70b00ff8e0fc Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
|
||||
<congdanhqx@gmail.com>
|
||||
Date: Thu, 1 Apr 2021 20:14:06 +0700
|
||||
Subject: [PATCH] Tests/ConfigSources: fix for non main stream CMAKE_BUILD_TYPE
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
- None is a valid CMAKE_BUILD_TYPE
|
||||
- Most of distros uses None as CMAKE_BUILD_TYPE
|
||||
- When CMAKE_BUILD_TYPE=None, main_other.cpp will be compiled and linked
|
||||
into final executable, this program requires some symbols only exist
|
||||
when CUSTOM_CFG_OTHER is defined.
|
||||
- And CMake also allows other CMAKE_BUILD_TYPE, too, CMake documentation
|
||||
specificaly mentions funny CMAKE_BUILD_TYPE like ReLeAsE [1]
|
||||
|
||||
Let's define them when non main stream like None is specified as CMAKE_BUILD_TYPE.
|
||||
|
||||
[1]: https://cmake.org/cmake/help/v3.20/variable/CMAKE_BUILD_TYPE.html
|
||||
---
|
||||
Tests/ConfigSources/CMakeLists.txt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git Tests/ConfigSources/CMakeLists.txt Tests/ConfigSources/CMakeLists.txt
|
||||
index a3d98f685f..f83759ca10 100644
|
||||
--- Tests/ConfigSources/CMakeLists.txt
|
||||
+++ Tests/ConfigSources/CMakeLists.txt
|
||||
@@ -74,10 +74,10 @@ add_custom_command(APPEND
|
||||
VERBATIM
|
||||
)
|
||||
foreach(n RANGE 1 5)
|
||||
- set_property(SOURCE custom${n}_Debug.cpp PROPERTY COMPILE_DEFINITIONS CUSTOM_CFG_DEBUG)
|
||||
- foreach(other Release RelWithDebInfo MinSizeRel)
|
||||
+ foreach(other ${CMAKE_BUILD_TYPE} Release RelWithDebInfo MinSizeRel)
|
||||
set_property(SOURCE custom${n}_${other}.cpp PROPERTY COMPILE_DEFINITIONS CUSTOM_CFG_OTHER)
|
||||
endforeach()
|
||||
+ set_property(SOURCE custom${n}_Debug.cpp PROPERTY COMPILE_DEFINITIONS CUSTOM_CFG_DEBUG)
|
||||
endforeach()
|
||||
add_library(Custom STATIC
|
||||
custom1_$<CONFIG>.cpp
|
Loading…
Reference in a new issue