From 5d36190301e982bb6b6f55bf53ced2b59dd8f1a4 Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot Date: Tue, 24 Feb 2026 13:13:51 +0100 Subject: [PATCH] [cmake][win] Fix TestSupport on Windows Linking a target with `ROOT::TestSupport` fails on Windows because of missing `${libprefix}` --- core/testsupport/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/testsupport/CMakeLists.txt b/core/testsupport/CMakeLists.txt index f795f6d0b5694..eaa1b032e0451 100644 --- a/core/testsupport/CMakeLists.txt +++ b/core/testsupport/CMakeLists.txt @@ -8,7 +8,7 @@ if(NOT testsupport) return() endif() -set(libname TestSupport) +set(libname ${libprefix}TestSupport) set(header_dir ROOT/) add_library(${libname} OBJECT src/TestSupport.cxx) @@ -27,5 +27,5 @@ install(TARGETS ${libname} set_property(GLOBAL APPEND PROPERTY ROOT_EXPORTED_TARGETS ${libname}) # Make it usable inside and outside of ROOT under a single name if somebody writes their own tests using ROOT_ADD_GTEST -add_library(ROOT::${libname} ALIAS ${libname}) +add_library(ROOT::TestSupport ALIAS ${libname})