Remove hardcoded desktop lib (#4193)

This commit is contained in:
Tiago Koji Castro Shibata 2020-06-12 16:51:54 -07:00 committed by GitHub
parent f74861841e
commit 2e3607c7cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,8 +30,10 @@ if(WIN32)
"${ONNXRUNTIME_ROOT}/core/platform/windows/logging/*.h"
"${ONNXRUNTIME_ROOT}/core/platform/windows/logging/*.cc"
)
# wndows platform adapter code uses advapi32
list(APPEND onnxruntime_EXTERNAL_LIBRARIES advapi32)
# 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"