From bd555819a7f26990fbaa9719e9e36a8fe30cccab Mon Sep 17 00:00:00 2001 From: yanghaoran Date: Wed, 22 Apr 2020 11:06:17 +0800 Subject: [PATCH] packages should strictly be found in local directory --- cmake/ge_utils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/ge_utils.cmake b/cmake/ge_utils.cmake index ded0b440..75480ded 100644 --- a/cmake/ge_utils.cmake +++ b/cmake/ge_utils.cmake @@ -243,7 +243,7 @@ function(graphengine_add_pkg pkg_name ) return() endif() elseif(NOT PKG_HEAD_ONLY) - find_package(${__FIND_PKG_NAME} ${PKG_VER} NO_CMAKE_SYSTEM_PATH NO_SYSTEM_ENVIRONMENT_PATH) + find_package(${__FIND_PKG_NAME} ${PKG_VER} ${GE_FIND_NO_DEFAULT_PATH}) if (${__FIND_PKG_NAME}_FOUND) set(${pkg_name}_INC ${${pkg_name}_BASE_DIR}/include PARENT_SCOPE) message("Found pkg: ${__FIND_PKG_NAME}")