use system libnsync (#4377)

* use system libnsync
This commit is contained in:
Christian Goll 2020-07-06 16:53:22 +02:00 committed by GitHub
parent 77cf51b13c
commit 3588484336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -378,7 +378,7 @@ if(onnxruntime_BUILD_BENCHMARKS)
endif()
endif()
if(NOT WIN32)
if(NOT WIN32 AND NOT onnxruntime_PREFER_SYSTEM_LIB)
add_subdirectory(${PROJECT_SOURCE_DIR}/external/nsync EXCLUDE_FROM_ALL)
endif()
# External dependencies