File use-system-libnsync.patch of Package python-onnxruntime
From 6f803c1e170367fb41361a54bfa5b68271df42e8 Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.de>
Date: Tue, 30 Jun 2020 11:36:17 +0200
Subject: [PATCH] use system libnsync
---
cmake/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index ba8781fa4..82d52bc5f 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -354,7 +354,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
--
2.26.2