mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-02 17:12:15 +00:00
Fix PC_REQUIRES_PRIV related overlinking in fluidsynth.pc
This commit is contained in:
parent
d9f95b77d4
commit
ce6e270a41
1 changed files with 2 additions and 7 deletions
|
@ -30,13 +30,8 @@ macro ( generate_pkgconfig_spec template outfile target )
|
|||
set(_cleanlibs)
|
||||
foreach(_lib IN LISTS _libs)
|
||||
if (TARGET ${_lib})
|
||||
get_target_property(_tlibs ${_lib} INTERFACE_LINK_LIBRARIES)
|
||||
foreach(_clib IN LISTS _tlibs)
|
||||
get_filename_component(_name "${_clib}" NAME)
|
||||
string(REGEX REPLACE "^lib" "" _clib ${_name})
|
||||
string(REGEX REPLACE ".so$" "" _clib ${_clib})
|
||||
list(APPEND _cleanlibs ${_clib})
|
||||
endforeach()
|
||||
# All the imported PkgConfig target are explicitly added to PC_REQUIRES_PRIV.
|
||||
# Do not duplicate them into the Libs.private section, as they will be already part of Requires.private
|
||||
else()
|
||||
list(APPEND _cleanlibs ${_lib})
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue