3
0
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:
Nils Wentzell 2020-04-29 15:31:54 -04:00
parent 6d4289e024
commit 0ad5d09fa8

View File

@ -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()