Skip to content

Commit cdc7f10

Browse files
committed
cmake: dispatcher: add handling of include dirs
from linked targets of base modules
1 parent e04d663 commit cdc7f10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/OpenCVCompilerOptimizations.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ macro(ocv_compiler_optimization_process_sources SOURCES_VAR_NAME LIBS_VAR_NAME T
587587
ocv_append_dependant_targets(${TARGET_BASE_NAME} ${TARGET_BASE_NAME}_${OPT})
588588
set_target_properties(${TARGET_BASE_NAME}_${OPT} PROPERTIES COMPILE_DEFINITIONS "${CPU_DISPATCH_DEFINITIONS_${OPT}}")
589589
set_target_properties(${TARGET_BASE_NAME}_${OPT} PROPERTIES COMPILE_FLAGS "${CPU_DISPATCH_FLAGS_${OPT}}")
590+
target_include_directories(${TARGET_BASE_NAME}_${OPT} PRIVATE $<TARGET_PROPERTY:${TARGET_BASE_NAME},INCLUDE_DIRECTORIES>)
590591
#list(APPEND __result_libs ${TARGET_BASE_NAME}_${OPT})
591592
list(APPEND __result "$<TARGET_OBJECTS:${TARGET_BASE_NAME}_${OPT}>")
592593
else()

0 commit comments

Comments
 (0)