mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-03 09:32:02 +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)
|
set(_cleanlibs)
|
||||||
foreach(_lib IN LISTS _libs)
|
foreach(_lib IN LISTS _libs)
|
||||||
if (TARGET ${_lib})
|
if (TARGET ${_lib})
|
||||||
get_target_property(_tlibs ${_lib} INTERFACE_LINK_LIBRARIES)
|
# All the imported PkgConfig target are explicitly added to PC_REQUIRES_PRIV.
|
||||||
foreach(_clib IN LISTS _tlibs)
|
# Do not duplicate them into the Libs.private section, as they will be already part of Requires.private
|
||||||
get_filename_component(_name "${_clib}" NAME)
|
|
||||||
string(REGEX REPLACE "^lib" "" _clib ${_name})
|
|
||||||
string(REGEX REPLACE ".so$" "" _clib ${_clib})
|
|
||||||
list(APPEND _cleanlibs ${_clib})
|
|
||||||
endforeach()
|
|
||||||
else()
|
else()
|
||||||
list(APPEND _cleanlibs ${_lib})
|
list(APPEND _cleanlibs ${_lib})
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue