From b866800f59c3d93e6636cbcf686d63f686a439bf Mon Sep 17 00:00:00 2001 From: smathis Date: Thu, 27 Aug 2026 14:30:04 +0200 Subject: [PATCH] Added require into default frontend function --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 716e8af..9f1ed03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,10 @@ function(default_cfd950_frontend F_TARGET F_NAME F_EVENT_ID NUM_CH NUM_DR) PRIVATE $ENV{MIDASSYS}/drivers ) + + # Is needed here because the find_package(Midas REQUIRED) further up in the + # file does not propagate into the function context. + find_package(Midas REQUIRED) target_link_libraries( ${F_TARGET}