From a09ec58336bbc701e309ce75da55e6ffb8670df0 Mon Sep 17 00:00:00 2001 From: mingyue Date: Thu, 27 Feb 2025 02:47:09 -0700 Subject: [PATCH] [Fix] cannot find mp11 cmake_install.cmake when install --- cmake/external/onnxruntime_external_deps.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake index 1b1e11c9772f9..f75931128d821 100644 --- a/cmake/external/onnxruntime_external_deps.cmake +++ b/cmake/external/onnxruntime_external_deps.cmake @@ -301,9 +301,10 @@ if(NOT TARGET Boost::mp11) onnxruntime_fetchcontent_declare( mp11 URL ${DEP_URL_mp11} + EXCLUDE_FROM_ALL FIND_PACKAGE_ARGS NAMES Boost ) - onnxruntime_fetchcontent_makeavailable(mp11) + onnxruntime_fetchcontent_makeavailable(mp11) if(NOT TARGET Boost::mp11) add_library(Boost::mp11 ALIAS Boost::headers) endif()