summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-02-03 09:52:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-02-03 09:52:21 +0100
commit0d40648a85d55da433f74fd53c2ee977ee054973 (patch)
tree6f0f82ef11e88dd49095652e66bdab0eba4ee5ab
parentd3ffafd227ab99e8673ea3edcf31de9b9e69fffa (diff)
tracker/nn: don't specify opencv module list
This is because multiple opentrack modules depend on different opencv modules and whichever FIND_PACKAGE(OpenCV COMPONENTS ...) gets executed first, wins. Following FIND_PACKAGE calls will exit and not populate the component list any further. This didn't break the build as the build code for tracker/nn wasn't the one being executed first.
-rw-r--r--tracker-neuralnet/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-neuralnet/CMakeLists.txt b/tracker-neuralnet/CMakeLists.txt
index fe8c85b2..2052e33f 100644
--- a/tracker-neuralnet/CMakeLists.txt
+++ b/tracker-neuralnet/CMakeLists.txt
@@ -1,5 +1,5 @@
include(opentrack-opencv)
-find_package(OpenCV QUIET COMPONENTS imgproc core imgcodecs calib3d)
+find_package(OpenCV QUIET)
find_package(OpenMP QUIET) # Used to control number of onnx threads.
find_package(ONNXRuntime QUIET)