From dc71b14e77a5d0e1e48be061b0816f014970968d Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Fri, 29 Jan 2021 17:08:09 +0100 Subject: [PATCH] fix interface included directory for opencv --- DarknetConfig.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DarknetConfig.cmake.in b/DarknetConfig.cmake.in index 703a59e3956..c016b220bd0 100644 --- a/DarknetConfig.cmake.in +++ b/DarknetConfig.cmake.in @@ -37,7 +37,7 @@ include("${Darknet_CMAKE_DIR}/DarknetTargets.cmake") include("${Darknet_CMAKE_DIR}/DarknetConfigVersion.cmake") if(@OpenCV_FOUND@) - target_include_directories(Darknet::dark PRIVATE ${OpenCV_INCLUDE_DIRS}) + set_property(TARGET Darknet::dark APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${OpenCV_INCLUDE_DIRS}") endif() get_target_property(FULL_DARKNET_INCLUDE_DIRS Darknet::dark INTERFACE_INCLUDE_DIRECTORIES)