Invalid linker flag in genereated .pc file

Fixes invalid linker flag `vals-NOTFOUND` in generated `libtorrent-rasterbar.pc`.

Fixes #4122
This commit is contained in:
Silver Zachara 2020-03-14 12:05:34 +01:00 committed by Arvid Norberg
parent 544158fd9b
commit 3b6ab35ae5
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ endfunction()
function(_get_target_property_merging_configs _var_name _target_name _propert_name)
get_target_property(vals ${_target_name} ${_propert_name})
if (NOT vals)
set(vals "")
if (CMAKE_BUILD_TYPE)
list(APPEND configs ${CMAKE_BUILD_TYPE})
elseif()