summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-04-23 15:53:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-04-23 15:53:35 +0200
commitf6e5dc41dfac32e85619de60c2683b3804df2077 (patch)
tree92453213dc5c0fcf083442cbb8e0a22b001e35a2
parentfd38b6eefeaee5c1a2643161421beade9ba0eaab (diff)
tracker/nn: only install shared library on win32
-rw-r--r--tracker-neuralnet/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
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()