From a29f89282fdda34f2a470349e5dfa02480d45476 Mon Sep 17 00:00:00 2001 From: vhinger Date: Tue, 26 May 2026 19:14:04 +0200 Subject: [PATCH] Correct new-style ROOT linking --- minuit2_bug_reproducer/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/minuit2_bug_reproducer/CMakeLists.txt b/minuit2_bug_reproducer/CMakeLists.txt index 51b05d8..496b8d3 100644 --- a/minuit2_bug_reproducer/CMakeLists.txt +++ b/minuit2_bug_reproducer/CMakeLists.txt @@ -1,3 +1,5 @@ +find_package(ROOT REQUIRED COMPONENTS Core Hist MathCore Graf Gpad) + add_executable(minuit2_root_interface_reproducer reproducer.cpp ) @@ -5,5 +7,9 @@ add_executable(minuit2_root_interface_reproducer target_link_libraries(minuit2_root_interface_reproducer PRIVATE aare_core - ${ROOT_LIBRARIES} + ROOT::Core + ROOT::Hist + ROOT::MathCore + ROOT::Graf + ROOT::Gpad ) \ No newline at end of file