Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit d6b5a2d

Browse files
committed
Merge branch 'interface.include.dirs' into hunter-3.0.0
2 parents 2b98d39 + f070f8c commit d6b5a2d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cmake/templates/OpenCVConfig.cmake.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,16 @@ if(OpenCV2_INCLUDE_DIRS)
177177
endif()
178178
endif()
179179

180+
if(NOT CMAKE_VERSION VERSION_LESS "2.8.11")
181+
# Target property INTERFACE_INCLUDE_DIRECTORIES available since 2.8.11:
182+
# * http://www.cmake.org/cmake/help/v2.8.11/cmake.html#prop_tgt:INTERFACE_INCLUDE_DIRECTORIES
183+
set_target_properties(
184+
opencv_core
185+
PROPERTIES
186+
INTERFACE_INCLUDE_DIRECTORIES "${OpenCV_INCLUDE_DIRS}"
187+
)
188+
endif()
189+
180190
# ==============================================================
181191
# Check OpenCV availability
182192
# ==============================================================

0 commit comments

Comments
 (0)