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

Commit

Permalink
Merge branch 'interface.include.dirs' into hunter-3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Jun 17, 2015
2 parents 2b98d39 + f070f8c commit d6b5a2d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/templates/OpenCVConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ if(OpenCV2_INCLUDE_DIRS)
endif()
endif()

if(NOT CMAKE_VERSION VERSION_LESS "2.8.11")
# Target property INTERFACE_INCLUDE_DIRECTORIES available since 2.8.11:
# * http://www.cmake.org/cmake/help/v2.8.11/cmake.html#prop_tgt:INTERFACE_INCLUDE_DIRECTORIES
set_target_properties(
opencv_core
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${OpenCV_INCLUDE_DIRS}"
)
endif()

# ==============================================================
# Check OpenCV availability
# ==============================================================
Expand Down

0 comments on commit d6b5a2d

Please sign in to comment.