From d94c754183782116019023ea8f07d8d2c41daa8b Mon Sep 17 00:00:00 2001 From: Gianluca Petrillo Date: Fri, 6 Nov 2026 22:01:21 -0600 Subject: [PATCH] CMakeLists.txt: sbnanaobj package exported This works around the issue where CMake requires `sbnanaobj` for any build where `sbncode` is included, regardless on whether that is actually used or not (e.g., in icaruscode it is not). This change allows the dependent build to succeed even when they don't explicitly include sbnanaobj (because *they* don't need it). --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78789cf64..960632af2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ find_package( larpandora REQUIRED ) find_package( larpandoracontent REQUIRED ) find_package( artdaq_core EXPORT REQUIRED ) find_package( sbnobj REQUIRED ) -find_package( sbnanaobj REQUIRED ) +find_package( sbnanaobj EXPORT REQUIRED ) find_package( sbndaq_artdaq_core EXPORT REQUIRED ) find_package( ifdh_art REQUIRED ) find_package( ifbeam REQUIRED )