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}")