From b76a0177449df3d7f61723a24c8edeaf0eb6a5a9 Mon Sep 17 00:00:00 2001 From: Thomas Perale Date: Sat, 24 May 2025 10:02:38 +0200 Subject: [PATCH] package/libical: fix deprecated CMake 4 policy The commit [1] updated the version of libical to version 3.0.20 which included a number of build fixes for newer CMake version. This patch is not included in the 2025.02.x branch and libical remained subject to a number of build error with CMake 4. This patch backport the fix to remove the usage of the now deprecated CMP0005 policy with CMake version 4 (see [2]). [1] 8cdeeb536c package/libical: bump to version 3.0.20 [2] https://cmake.org/cmake/help/latest/policy/CMP0005.html Signed-off-by: Thomas Perale --- ...ger-support-old-cmake-policy-cmp0005.patch | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 package/libical/0003-cmakelists-txt-no-longer-support-old-cmake-policy-cmp0005.patch diff --git a/package/libical/0003-cmakelists-txt-no-longer-support-old-cmake-policy-cmp0005.patch b/package/libical/0003-cmakelists-txt-no-longer-support-old-cmake-policy-cmp0005.patch new file mode 100644 index 0000000000..6e21c6d6df --- /dev/null +++ b/package/libical/0003-cmakelists-txt-no-longer-support-old-cmake-policy-cmp0005.patch @@ -0,0 +1,42 @@ +From 7f07ace91faa8b1d578bf5bac2987660f91f31ca Mon Sep 17 00:00:00 2001 +From: Allen Winter +Date: Sat, 14 Oct 2017 15:49:54 -0400 +Subject: [PATCH] CMakeLists.txt, src/test/CMakeLists.txt - no longer support + old CMake Policy CMP0005 ISSUE#315 + +Upstream: https://github.com/libical/libical/commit/7f07ace91faa8b1d578bf5bac2987660f91f31ca +[thomas: backported to v1.0.1] +Signed-off-by: Thomas Perale + +--- + CMakeLists.txt | 1 - + src/test/CMakeLists.txt | 2 +- + 2 files changed, 1 insertion(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d5aad80c..e2d5de72 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -50,7 +50,6 @@ project(libical C CXX) + + if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) +- cmake_policy(SET CMP0005 OLD) + endif() + + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) +diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt +index 322b5e40..31ab6199 100644 +--- a/src/test/CMakeLists.txt ++++ b/src/test/CMakeLists.txt +@@ -6,7 +6,7 @@ include_directories( + + set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}) + +-set(TEST_DATADIR "\\\"${CMAKE_SOURCE_DIR}/test-data\\\"") ++set(TEST_DATADIR "\"${CMAKE_SOURCE_DIR}/test-data\"") + add_definitions(-DTEST_DATADIR=${TEST_DATADIR}) + + macro(setprops _name) +-- +2.49.0