mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 21:21:37 +00:00
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:
@@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
# Project ######################################################################
|
||||
cmake_minimum_required(VERSION 3.15...3.30 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.25...3.31 FATAL_ERROR)
|
||||
|
||||
list(PREPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||
include(GitHelper)
|
||||
@@ -44,13 +44,6 @@ include(FairMQDependencies)
|
||||
|
||||
|
||||
# Targets ######################################################################
|
||||
if(FAIRMQ_TEST_LD_LIBRARY_PATH AND CMAKE_VERSION VERSION_LESS 3.22)
|
||||
# The per-test injection relies on ctest's ENVIRONMENT_MODIFICATION, which
|
||||
# older CMake silently drops -- the tests would run against the default
|
||||
# runtime while looking green.
|
||||
message(FATAL_ERROR "FAIRMQ_TEST_LD_LIBRARY_PATH requires CMake >= 3.22")
|
||||
endif()
|
||||
|
||||
if(BUILD_FAIRMQ)
|
||||
add_subdirectory(fairmq)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user