Add clog back to onnxruntime_EXTERNAL_LIBRARIES. (#15363)

### Description
<!-- Describe your changes. -->

Add clog back to onnxruntime_EXTERNAL_LIBRARIES.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

Fix iOS packaging pipeline build failure.
This commit is contained in:
Edward Chen 2023-04-05 09:11:19 -07:00 committed by GitHub
parent a0d8dbe28d
commit 9f5aa8e021
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -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()

View file

@ -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()