Commit 7eb37bd1 authored by Maksim Shabunin's avatar Maksim Shabunin

Fixed components INTERFACE_INCLUDE_DIRECTORY property in "world" builds

parent 384fa956
...@@ -225,7 +225,9 @@ foreach(__cvcomponent ${OpenCV_FIND_COMPONENTS}) ...@@ -225,7 +225,9 @@ foreach(__cvcomponent ${OpenCV_FIND_COMPONENTS})
get_target_property(__implib_release opencv_world IMPORTED_IMPLIB_RELEASE) get_target_property(__implib_release opencv_world IMPORTED_IMPLIB_RELEASE)
get_target_property(__location_dbg opencv_world IMPORTED_LOCATION_DEBUG) get_target_property(__location_dbg opencv_world IMPORTED_LOCATION_DEBUG)
get_target_property(__location_release opencv_world IMPORTED_LOCATION_RELEASE) 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) add_library(${__cvcomponent} SHARED IMPORTED)
set_target_properties(${__cvcomponent} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${__include_dir}")
if(__location_dbg) if(__location_dbg)
set_property(TARGET ${__cvcomponent} APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) set_property(TARGET ${__cvcomponent} APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
set_target_properties(${__cvcomponent} PROPERTIES set_target_properties(${__cvcomponent} PROPERTIES
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment