From 7eb37bd1ddaab05699aebd1d405a77ef7b21e34b Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Fri, 2 Feb 2018 18:14:25 +0300 Subject: [PATCH] Fixed components INTERFACE_INCLUDE_DIRECTORY property in "world" builds --- cmake/templates/OpenCVConfig.cmake.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/templates/OpenCVConfig.cmake.in b/cmake/templates/OpenCVConfig.cmake.in index edc707549e..00e5f2e57b 100644 --- a/cmake/templates/OpenCVConfig.cmake.in +++ b/cmake/templates/OpenCVConfig.cmake.in @@ -225,7 +225,9 @@ foreach(__cvcomponent ${OpenCV_FIND_COMPONENTS}) get_target_property(__implib_release opencv_world IMPORTED_IMPLIB_RELEASE) get_target_property(__location_dbg opencv_world IMPORTED_LOCATION_DEBUG) get_target_property(__location_release opencv_world IMPORTED_LOCATION_RELEASE) + get_target_property(__include_dir opencv_world INTERFACE_INCLUDE_DIRECTORIES) add_library(${__cvcomponent} SHARED IMPORTED) + set_target_properties(${__cvcomponent} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${__include_dir}") if(__location_dbg) set_property(TARGET ${__cvcomponent} APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) set_target_properties(${__cvcomponent} PROPERTIES