From 0eae5c651d44f56c5d1bf5e4a9b69c62a55c6b37 Mon Sep 17 00:00:00 2001 From: Patrik Huber Date: Sat, 24 Feb 2018 14:25:58 +0000 Subject: [PATCH] Change usage instructions to target_ based (#2873) --- ports/opencv/usage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/opencv/usage b/ports/opencv/usage index b9df60b82d5..1c30e5feaf1 100644 --- a/ports/opencv/usage +++ b/ports/opencv/usage @@ -1,5 +1,5 @@ The package opencv provides CMake integration: find_package(OpenCV REQUIRED) - include_directories(${OpenCV_INCLUDE_DIRS}) + target_include_directories(main PRIVATE ${OpenCV_INCLUDE_DIRS}) target_link_libraries(main PRIVATE ${OpenCV_LIBS})