forked from OSchip/llvm-project
[mlir] Make mlir_check_link_libraries() work with interface libraries
This changes mlir_check_link_libraries() to work with interface libraries. These don't have the LINK_LIBRARIES property. Differential Revision: https://reviews.llvm.org/D85957
This commit is contained in:
parent
8f6f6f407a
commit
324ae458df
|
@ -184,7 +184,12 @@ endfunction(add_mlir_translation_library)
|
|||
# Verification tools to aid debugging.
|
||||
function(mlir_check_link_libraries name)
|
||||
if(TARGET ${name})
|
||||
get_target_property(libs ${name} LINK_LIBRARIES)
|
||||
get_target_property(type ${name} TYPE)
|
||||
if (${type} STREQUAL "INTERFACE_LIBRARY")
|
||||
get_target_property(libs ${name} INTERFACE_LINK_LIBRARIES)
|
||||
else()
|
||||
get_target_property(libs ${name} LINK_LIBRARIES)
|
||||
endif()
|
||||
# message("${name} libs are: ${libs}")
|
||||
set(linking_llvm 0)
|
||||
foreach(lib ${libs})
|
||||
|
|
Loading…
Reference in New Issue