summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-13 23:54:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-13 23:55:27 +0200
commit94e7374bad0da0d9d132401bd57526b509497c7d (patch)
tree442ec3ed08d14ccb877b95f94907616c4220764a
parent7dac10fac50aa04ae538bc81b0bbe60f514a0024 (diff)
tracker/nn: fix build
-rw-r--r--tracker-neuralnet/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/tracker-neuralnet/CMakeLists.txt b/tracker-neuralnet/CMakeLists.txt
index 9298cd1f..db568fae 100644
--- a/tracker-neuralnet/CMakeLists.txt
+++ b/tracker-neuralnet/CMakeLists.txt
@@ -25,8 +25,11 @@ if(OpenCV_FOUND AND ONNXRuntime_FOUND AND OpenMP_FOUND)
opencv_core
OpenMP::OpenMP_CXX
)
+
# OpenMP::OpenMP_CXX doesn't set up the -fopenmp linking option, so set it up ourselves.
- target_link_options(${self} PUBLIC ${OpenMP_CXX_FLAGS})
+ if(NOT MSVC)
+ target_link_options(${self} PUBLIC ${OpenMP_CXX_FLAGS})
+ endif()
install(
FILES "models/head-localizer.onnx"