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}