From c10945b6af642c1da88cac53073feb84af95ff7e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 6 Jul 2022 10:04:44 -0600 Subject: [PATCH] Improve warning messages. --- CMakeModules/GetPrerequisites.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeModules/GetPrerequisites.cmake b/CMakeModules/GetPrerequisites.cmake index 3d646d0306..d4bfcd3f32 100644 --- a/CMakeModules/GetPrerequisites.cmake +++ b/CMakeModules/GetPrerequisites.cmake @@ -386,6 +386,8 @@ function(gp_resolve_item context item exepath dirs resolved_item_var) set(resolved 1) set(resolved_item "${ri}") set(ri "ri-NOTFOUND") + else() + message(STATUS "warning: '${norpath_item}' not found under exepath (${exepath}), dirs (${dirs}), or rpaths (${rpaths})") endif() endif() @@ -450,8 +452,7 @@ function(gp_resolve_item context item exepath dirs resolved_item_var) endif() if(NOT resolved) - message(STATUS " -warning: cannot resolve item '${item}' + message(STATUS "warning: cannot resolve item '${item}' possible problems: need more directories?