From 9f5aa8e0218fc87a54eea2dedd98bcbb5ce16d31 Mon Sep 17 00:00:00 2001 From: Edward Chen <18449977+edgchen1@users.noreply.github.com> Date: Wed, 5 Apr 2023 09:11:19 -0700 Subject: [PATCH] Add clog back to onnxruntime_EXTERNAL_LIBRARIES. (#15363) ### Description Add clog back to onnxruntime_EXTERNAL_LIBRARIES. ### Motivation and Context Fix iOS packaging pipeline build failure. --- cmake/external/onnxruntime_external_deps.cmake | 3 +++ cmake/onnxruntime_common.cmake | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake index 337f4ce204..0c0dea7df2 100644 --- a/cmake/external/onnxruntime_external_deps.cmake +++ b/cmake/external/onnxruntime_external_deps.cmake @@ -364,7 +364,10 @@ FetchContent_Declare( if (CPUINFO_SUPPORTED) onnxruntime_fetchcontent_makeavailable(pytorch_cpuinfo) if (pytorch_cpuinfo_SOURCE_DIR) + # shouldn't need to define these aliases after we use a version of cpuinfo with this commit: + # https://github.com/pytorch/cpuinfo/commit/082deffc80ce517f81dc2f3aebe6ba671fcd09c9 add_library(cpuinfo::cpuinfo ALIAS cpuinfo) + add_library(cpuinfo::clog ALIAS clog) endif() endif() diff --git a/cmake/onnxruntime_common.cmake b/cmake/onnxruntime_common.cmake index 685df7a487..0410d3361c 100644 --- a/cmake/onnxruntime_common.cmake +++ b/cmake/onnxruntime_common.cmake @@ -195,7 +195,7 @@ if (ARM64 OR ARM OR X86 OR X64 OR X86_64) # Its functionality in detecting x86 cpu features are lacking, so is support for Windows. if (CPUINFO_SUPPORTED) onnxruntime_add_include_to_target(onnxruntime_common cpuinfo::cpuinfo) - list(APPEND onnxruntime_EXTERNAL_LIBRARIES cpuinfo::cpuinfo) + list(APPEND onnxruntime_EXTERNAL_LIBRARIES cpuinfo::cpuinfo cpuinfo::clog) endif() endif() endif()