mirror of
https://github.com/triqs/dft_tools
synced 2024-12-23 04:43:42 +01:00
[cmake] Minor fix in extract_flags.cmake file
This commit is contained in:
parent
6d4289e024
commit
0ad5d09fa8
@ -56,7 +56,7 @@ macro(extract_flags target)
|
|||||||
|
|
||||||
get_property_recursive(libs TARGET ${target} PROPERTY INTERFACE_LINK_LIBRARIES)
|
get_property_recursive(libs TARGET ${target} PROPERTY INTERFACE_LINK_LIBRARIES)
|
||||||
foreach(lib ${libs})
|
foreach(lib ${libs})
|
||||||
if(NOT TARGET ${lib})
|
if(NOT TARGET ${lib} AND NOT IS_DIRECTORY ${lib})
|
||||||
set(${target}_LDFLAGS "${${target}_LDFLAGS} ${lib}")
|
set(${target}_LDFLAGS "${${target}_LDFLAGS} ${lib}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
Reference in New Issue
Block a user