From db1f80412d19c1009e4afd189a2ff671000cb6f0 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller Date: Fri, 10 Jul 2026 20:36:37 +0200 Subject: [PATCH 1/2] Bump minimum CMake version from 2.6 to 3.10 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f72917..8131ccb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ # cmake file for building KalFit libraries # @author Jan Engels, DESY # @author F. Gaede, DESY -CMAKE_MINIMUM_REQUIRED( VERSION 2.6 FATAL_ERROR ) +CMAKE_MINIMUM_REQUIRED( VERSION 3.10 FATAL_ERROR ) ######################################################## From 7683b40d3be331009ca553b0a86484d7bc5e39b6 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller Date: Sat, 25 Jul 2026 12:28:21 +0200 Subject: [PATCH 2/2] Generate an empty KalTestLibDeps.cmake --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8131ccb..7532f59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,5 +64,9 @@ ADD_SUBDIRECTORY( ./examples/kaltest ) DISPLAY_STD_VARIABLES() # generate and install following configuration files -GENERATE_PACKAGE_CONFIGURATION_FILES( KalTestConfig.cmake KalTestConfigVersion.cmake KalTestLibDeps.cmake ) - +# Modern CMake no longer generates the legacy dependency file used by this +# package-config template. +GENERATE_PACKAGE_CONFIGURATION_FILES( KalTestConfig.cmake KalTestConfigVersion.cmake ) +FILE( WRITE "${PROJECT_BINARY_DIR}/KalTestLibDeps.cmake" + "# KalTest shared-library dependency information is resolved at runtime.\n" ) +INSTALL( FILES "${PROJECT_BINARY_DIR}/KalTestLibDeps.cmake" DESTINATION lib/cmake )