mirror of
https://github.com/triqs/dft_tools
synced 2024-11-18 12:03:50 +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)
|
||||
foreach(lib ${libs})
|
||||
if(NOT TARGET ${lib})
|
||||
if(NOT TARGET ${lib} AND NOT IS_DIRECTORY ${lib})
|
||||
set(${target}_LDFLAGS "${${target}_LDFLAGS} ${lib}")
|
||||
endif()
|
||||
endforeach()
|
||||
|
Loading…
Reference in New Issue
Block a user