From 14215408dd59e6c4b194bd5f12c77f3a325a6148 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller Date: Fri, 24 Apr 2026 11:00:50 +0200 Subject: [PATCH 1/2] Bump the minimum version of CMake to 3.10, to be able to compile with CMake 4.0 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 216e130..147145e 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 e27d51b973580b332e341955b0302942cc42d4b2 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller Date: Fri, 10 Jul 2026 20:20:31 +0200 Subject: [PATCH 2/2] Add LANGUAGES CXX to project() --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 147145e..10d1fd9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ CMAKE_MINIMUM_REQUIRED( VERSION 3.10 FATAL_ERROR ) # project name -PROJECT( KalTest ) +PROJECT( KalTest LANGUAGES CXX ) # project version @@ -64,5 +64,5 @@ ADD_SUBDIRECTORY( ./examples/kaltest ) DISPLAY_STD_VARIABLES() # generate and install following configuration files -GENERATE_PACKAGE_CONFIGURATION_FILES( KalTestConfig.cmake KalTestConfigVersion.cmake KalTestLibDeps.cmake ) +GENERATE_PACKAGE_CONFIGURATION_FILES( KalTestConfig.cmake KalTestConfigVersion.cmake)