build break for arm64, adding advapi32.lib (#2206)

This commit is contained in:
Paul McDaniel 2019-10-21 08:48:28 -07:00 committed by Pranav Sharma
parent fcf50ca081
commit 02dc3a9dcb
2 changed files with 3 additions and 1 deletions

View file

@ -27,6 +27,8 @@ 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)
else()
list(APPEND onnxruntime_common_src_patterns
"${ONNXRUNTIME_ROOT}/core/platform/posix/*.h"

View file

@ -599,7 +599,7 @@ endif()
if (onnxruntime_BUILD_SHARED_LIB)
set(onnxruntime_perf_test_libs onnxruntime_test_utils onnx_test_runner_common onnxruntime_common re2
onnx_test_data_proto onnx_proto libprotobuf ${GETOPT_LIB_WIDE} onnxruntime
onnx_test_data_proto onnx_proto libprotobuf ${GETOPT_LIB_WIDE} onnxruntime ${onnxruntime_EXTERNAL_LIBRARIES}
${SYS_PATH_LIB} ${CMAKE_DL_LIBS})
if(onnxruntime_USE_NSYNC)
list(APPEND onnxruntime_perf_test_libs nsync_cpp)