From d2cffacc88610ace03ae7e6fb652bcdce857087c Mon Sep 17 00:00:00 2001 From: Nicole Lemaster Slattengren Date: Tue, 24 Nov 2020 14:33:39 -0800 Subject: [PATCH] #1159: build: correct messages when package not found --- cmake/local_package.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/local_package.cmake b/cmake/local_package.cmake index 856d0de5bf..7c2d22ae84 100644 --- a/cmake/local_package.cmake +++ b/cmake/local_package.cmake @@ -50,9 +50,8 @@ macro(find_package_local pkg_name pkg_directory pkg_other_name) foreach(prefix ${prefix_args}) set(potential_path ${pkg_directory}/${prefix}) - set(${pkg_name}_DIR ${potential_path}) # message("prefix: ${potential_path}") - if (EXISTS "${${pkg_name}_DIR}${pkg_prefix}") + if (EXISTS "${potential_path}") # message(STATUS "find_package_local: trying path: ${potential_path}") # Search locally only for package based on the user's supplied path; if