15 Star 0 Fork 15

src-openEuler/evolution-data-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-evolution-data-server-cmake-3.15.patch 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2025-03-09 20:22 +08:00 . fix build with icu 76
From f41430411039204c47bfe8479be21a1721caf0bb Mon Sep 17 00:00:00 2001
From: Milan Crha <mcrha@redhat.com>
Date: Fri, 12 Jan 2024 15:56:08 +0100
Subject: [PATCH] build: Bump CMake version requirement to 3.15 and change
libedataserverui4 .h files copy
Let's depend on a newer version of CMake. The previous 3.1 compatibility code
will be gone in future CMake releases.
The Ninja generator requires different way to copy the libedataserverui4 header
files, thus it knows where the files come from.
---
CMakeLists.txt | 4 ++--
src/libedataserverui/CMakeLists.txt | 14 ++++++++++----
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f75420b..dd59de6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
# Evolution-Data-Server build script
-cmake_minimum_required(VERSION 3.1)
-cmake_policy(VERSION 3.1)
+cmake_minimum_required(VERSION 3.15)
+cmake_policy(VERSION 3.15)
project(evolution-data-server
VERSION 3.46.2
diff --git a/src/libedataserverui/CMakeLists.txt b/src/libedataserverui/CMakeLists.txt
index c2d250c..860946c 100644
--- a/src/libedataserverui/CMakeLists.txt
+++ b/src/libedataserverui/CMakeLists.txt
@@ -271,10 +271,16 @@ install(FILES ${HEADERS}
DESTINATION ${privincludedir}/libedataserverui${UI_VERSION}
)
-# create libedataserverui4/... in the build dir, thus .gir can find it
-file(COPY ${HEADERS}
- DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/libedataserverui${UI_VERSION}/
-)
+# create libedataserverui4/... in the build dir, thus .gir can find it;
+# do it this way, to satisfy Ninja generator (see CMP0058)
+foreach(_item IN LISTS HEADERS SOURCES)
+ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_item}")
+ file(GENERATE
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libedataserverui${UI_VERSION}/${_item}
+ INPUT ${CMAKE_CURRENT_SOURCE_DIR}/${_item}
+ )
+ endif()
+endforeach()
set(gir_sources ${SOURCES} ${HEADERS})
set(gir_identifies_prefixes E)
--
GitLab
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/evolution-data-server.git
git@gitee.com:src-openeuler/evolution-data-server.git
src-openeuler
evolution-data-server
evolution-data-server
master

搜索帮助