From f6e5dc41dfac32e85619de60c2683b3804df2077 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 23 Apr 2022 15:53:35 +0200 Subject: tracker/nn: only install shared library on win32 --- tracker-neuralnet/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tracker-neuralnet') diff --git a/tracker-neuralnet/CMakeLists.txt b/tracker-neuralnet/CMakeLists.txt index 01fc9976..f414c920 100644 --- a/tracker-neuralnet/CMakeLists.txt +++ b/tracker-neuralnet/CMakeLists.txt @@ -28,7 +28,9 @@ if(OpenCV_FOUND AND ONNXRuntime_FOUND AND OpenMP_FOUND) PERMISSIONS ${opentrack-perms-file} ) - otr_install_lib("${ONNXRuntime_RUNTIME}" ".") + if(WIN32) + otr_install_lib("${ONNXRuntime_RUNTIME}" ".") + endif() if(MSVC) otr_install_lib("redist/vcomp140.dll" "${opentrack-bin}") endif() -- cgit v1.2.3