build!: require CMake 3.25

- Raise the minimum from 3.15 to 3.25 and the policy range to 3.31
- Remove the 3.22 version guards for ENVIRONMENT_MODIFICATION
- Link the GoogleTest target GTest::gtest, which FindGTest and the
  GoogleTest package config both provide

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-09 22:40:43 +00:00
committed by Dennis Klein
parent 6cce60be0a
commit d4644ae33a
4 changed files with 6 additions and 13 deletions

View File

@@ -9,7 +9,7 @@
# Minimal downstream project. It checks that an installed FairMQ can be found
# and used the way the README describes. Run it via check-install.sh.
cmake_minimum_required(VERSION 3.15...3.30 FATAL_ERROR)
cmake_minimum_required(VERSION 3.15...3.31 FATAL_ERROR)
project(FairMQConsumer LANGUAGES CXX)
find_package(FairCMakeModules REQUIRED)