mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 13:11:36 +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:
@@ -61,8 +61,8 @@ function(add_testsuite suitename)
|
||||
${ARGN}
|
||||
)
|
||||
|
||||
# runner.cxx defines main(), so do not link GTest::Main
|
||||
list(INSERT testsuite_LINKS 0 GTest::GTest)
|
||||
# runner.cxx defines main(), so do not link GTest::gtest_main
|
||||
list(INSERT testsuite_LINKS 0 GTest::gtest)
|
||||
set(target "testsuite_${suitename}")
|
||||
|
||||
add_executable(${target} ${testsuite_SOURCES})
|
||||
@@ -79,7 +79,7 @@ function(add_testsuite suitename)
|
||||
if(testsuite_DEFINITIONS)
|
||||
target_compile_definitions("${target}" PUBLIC ${testsuite_DEFINITIONS})
|
||||
endif()
|
||||
if(testsuite_ENVIRONMENT AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.22)
|
||||
if(testsuite_ENVIRONMENT)
|
||||
set(env "ENVIRONMENT_MODIFICATION" ${testsuite_ENVIRONMENT})
|
||||
endif()
|
||||
if(BUILD_TIDY_TOOL AND RUN_FAIRMQ_TIDY)
|
||||
|
||||
Reference in New Issue
Block a user