Skip to content

Commit

Permalink
fix interface included directory for opencv
Browse files Browse the repository at this point in the history
  • Loading branch information
cenit committed Jan 29, 2021
1 parent 05bda64 commit dc71b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DarknetConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dc71b14

Please sign in to comment.