summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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"