libxlsxwriter: fix build with new cmake
This commit is contained in:
parent
ebd0f4d728
commit
45d5d90e8a
29
srcpkgs/libxlsxwriter/patches/cmake-2.26.patch
Normal file
29
srcpkgs/libxlsxwriter/patches/cmake-2.26.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From f477741dd3782101eefb35f9c6f9ed93ee3f642d Mon Sep 17 00:00:00 2001
|
||||
From: Yihua Liu <yihuajack@live.cn>
|
||||
Date: Sat, 29 Apr 2023 16:50:51 +0800
|
||||
Subject: [PATCH] fix: cmake zlib minizip ver required
|
||||
|
||||
---
|
||||
CMakeLists.txt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index e656184d..fb5a2f5e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -219,13 +219,13 @@ enable_language(CXX)
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||
|
||||
# ZLIB
|
||||
-find_package(ZLIB REQUIRED "1.0")
|
||||
+find_package(ZLIB "1.0" REQUIRED)
|
||||
list(APPEND LXW_PRIVATE_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS})
|
||||
message("zlib version: " ${ZLIB_VERSION})
|
||||
|
||||
# MINIZIP
|
||||
if (USE_SYSTEM_MINIZIP)
|
||||
- find_package(MINIZIP REQUIRED "1.0")
|
||||
+ find_package(MINIZIP "1.0" REQUIRED)
|
||||
list(APPEND LXW_PRIVATE_INCLUDE_DIRS ${MINIZIP_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
@ -1,2 +1,2 @@
|
||||
site=https://github.com/jmcnamara/libxlsxwriter/releases
|
||||
site=https://github.com/jmcnamara/libxlsxwriter/tags
|
||||
pkgname=RELEASE
|
||||
|
Loading…
Reference in New Issue
Block a user