export simple libs from OPENCV_LINKER_LIBS (fix #5541)
(cherry picked from commit 937a096bf1)
			
			
This commit is contained in:
		 Alexander Alekhin
					Alexander Alekhin
				
			
				
					committed by
					
						 Alexander Smorkalov
						Alexander Smorkalov
					
				
			
			
				
	
			
			
			 Alexander Smorkalov
						Alexander Smorkalov
					
				
			
						parent
						
							2e78a3e5e9
						
					
				
				
					commit
					60eda6f25c
				
			| @@ -576,7 +576,10 @@ macro(ocv_create_module) | ||||
|   if(NOT "${ARGN}" STREQUAL "SKIP_LINK") | ||||
|     target_link_libraries(${the_module} ${OPENCV_MODULE_${the_module}_DEPS}) | ||||
|     target_link_libraries(${the_module} LINK_INTERFACE_LIBRARIES ${OPENCV_MODULE_${the_module}_DEPS}) | ||||
|     target_link_libraries(${the_module} ${OPENCV_MODULE_${the_module}_DEPS_EXT} ${OPENCV_LINKER_LIBS} ${IPP_LIBS} ${ARGN}) | ||||
|     set(extra_deps ${OPENCV_MODULE_${the_module}_DEPS_EXT} ${OPENCV_LINKER_LIBS} ${IPP_LIBS} ${ARGN}) | ||||
|     ocv_extract_simple_libs(extra_deps _simple_deps _other_deps) | ||||
|     target_link_libraries(${the_module} LINK_INTERFACE_LIBRARIES ${_simple_deps}) # this list goes to "export" | ||||
|     target_link_libraries(${the_module} ${extra_deps}) | ||||
|   endif() | ||||
|  | ||||
|   add_dependencies(opencv_modules ${the_module}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user