File onnxruntime-system-boost.patch of Package onnxruntime
diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
index 9feb7772d1..64767af48b 100644
--- a/cmake/external/onnxruntime_external_deps.cmake
+++ b/cmake/external/onnxruntime_external_deps.cmake
@@ -279,23 +279,23 @@ onnxruntime_fetchcontent_declare(
onnxruntime_fetchcontent_makeavailable(date)
if(NOT TARGET Boost::mp11)
- if(onnxruntime_USE_VCPKG)
+ # if(onnxruntime_USE_VCPKG)
find_package(Boost REQUIRED)
message(STATUS "Aliasing Boost::headers to Boost::mp11")
add_library(Boost::mp11 ALIAS Boost::headers)
- else()
- onnxruntime_fetchcontent_declare(
- mp11
- URL ${DEP_URL_mp11}
- EXCLUDE_FROM_ALL
- FIND_PACKAGE_ARGS NAMES Boost
- )
- FetchContent_Populate(mp11)
- if(NOT TARGET Boost::mp11)
- add_library(Boost::mp11 IMPORTED INTERFACE)
- target_include_directories(Boost::mp11 INTERFACE $<BUILD_INTERFACE:${mp11_SOURCE_DIR}/include>)
- endif()
- endif()
+ # else()
+ # onnxruntime_fetchcontent_declare(
+ # mp11
+ # URL ${DEP_URL_mp11}
+ # EXCLUDE_FROM_ALL
+ # FIND_PACKAGE_ARGS NAMES Boost
+ # )
+ # FetchContent_Populate(mp11)
+ # if(NOT TARGET Boost::mp11)
+ # add_library(Boost::mp11 IMPORTED INTERFACE)
+ # target_include_directories(Boost::mp11 INTERFACE $<BUILD_INTERFACE:${mp11_SOURCE_DIR}/include>)
+ # endif()
+ # endif()
endif()
set(JSON_BuildTests OFF CACHE INTERNAL "")