From a1ab5d158ae2f4c5ce5e88602c798b86414ea67c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 6 Apr 2019 10:43:09 +0200 Subject: cv: fix variable scope Issue: #926 --- tracker-kinect-face/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tracker-kinect-face/CMakeLists.txt') diff --git a/tracker-kinect-face/CMakeLists.txt b/tracker-kinect-face/CMakeLists.txt index 48c51adb..be764369 100644 --- a/tracker-kinect-face/CMakeLists.txt +++ b/tracker-kinect-face/CMakeLists.txt @@ -44,6 +44,8 @@ if (WIN32 AND opentrack-intel) # Optional OpenCV support # Needed for Point Tracker to support Kinect V2 IR Sensor include(opentrack-opencv) + find_package(OpenCV QUIET) + if(OpenCV_FOUND) add_definitions(-DOTR_HAVE_OPENCV) target_include_directories(${self} SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS}) -- cgit v1.2.3