mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
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:
parent
542f1a9737
commit
da15f5fc2f
1 changed files with 1 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue