change cmake condition to prevent WCOS fom linking advapi32 (#9500)

* change condition to prevent WCOS fom linking advapi32.dll

* Remove linkage to advapi32.lib
This commit is contained in:
Jingqiao Fu 2021-10-26 12:16:49 -07:00 committed by GitHub
parent 542f1a9737
commit da15f5fc2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,10 +33,7 @@ if(WIN32)
"${ONNXRUNTIME_ROOT}/core/platform/windows/logging/*.h"
"${ONNXRUNTIME_ROOT}/core/platform/windows/logging/*.cc"
)
# Windows platform adapter code uses advapi32, which isn't linked in by default in desktop ARM
if (NOT WINDOWS_STORE)
list(APPEND onnxruntime_EXTERNAL_LIBRARIES advapi32)
endif()
else()
list(APPEND onnxruntime_common_src_patterns
"${ONNXRUNTIME_ROOT}/core/platform/posix/*.h"