CMake: in wx_get_dependencies, for existing targets, use its LOCATION instead of the target name
This commit is contained in:
parent
3510319048
commit
1bc43c8d7a
@ -32,7 +32,12 @@ macro(wx_get_dependencies var lib)
|
||||
if(TARGET ${lib})
|
||||
get_target_property(deps ${lib} LINK_LIBRARIES)
|
||||
foreach(dep IN LISTS deps)
|
||||
get_filename_component(name ${dep} NAME)
|
||||
if(TARGET ${dep})
|
||||
get_target_property(dep_path ${dep} LOCATION)
|
||||
else()
|
||||
set(dep_path ${dep})
|
||||
endif()
|
||||
get_filename_component(name ${dep_path} NAME)
|
||||
wx_string_append(${var} "${name} ")
|
||||
endforeach()
|
||||
string(STRIP ${${var}} ${var})
|
||||
|
Loading…
Reference in New Issue
Block a user