File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,13 @@ function(add_custom_ie_build _inc _lib _lib_rel _lib_dbg _msg)
68
68
if (find_prefix STREQUAL "_empty_" ) # foreach doesn't iterate over empty elements
69
69
set (find_prefix "" )
70
70
endif ()
71
- foreach (find_suffix ${CMAKE_FIND_LIBRARY_SUFFIXES} )
71
+ if (NOT DEFINED INFERENCE_ENGINE_FIND_LIBRARY_SUFFIXES ) # allow custom override
72
+ set (INFERENCE_ENGINE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES} )
73
+ if (APPLE )
74
+ ocv_list_filterout (INFERENCE_ENGINE_FIND_LIBRARY_SUFFIXES "^.so$" ) # skip plugins (can't be linked)
75
+ endif ()
76
+ endif ()
77
+ foreach (find_suffix ${INFERENCE_ENGINE_FIND_LIBRARY_SUFFIXES} )
72
78
ocv_ie_find_extra_libraries ("${find_prefix} " "${find_suffix} " )
73
79
endforeach ()
74
80
if (NOT CMAKE_FIND_LIBRARY_SUFFIXES )
You can’t perform that action at this time.
0 commit comments