HomePhabricator

[CMAKE] Fix the prl conversion script linking against lib_NOTFOUND

Description

[CMAKE] Fix the prl conversion script linking against lib_NOTFOUND

Summary:
If a component has no INTERFACE_LINK_LIBRARIES (empty property), the
script ends up linking against -l_link_libs_NOTFOUND due to the
required string conversion of the library path variable.
This diff resets the string representation to an empty string in this
case to avoid the linkage error.

Test Plan:

cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Win64.cmake -GNinja \
-DBUILD_BITCOIN_SEEDER=OFF ..
ninja

Check the build is successful.

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D2949

Details

Provenance
FabienAuthored on May 6 2019, 09:33
FabienPushed on May 10 2019, 10:09
Reviewer
Restricted Project
Differential Revision
D2949: [CMAKE] Fix the prl conversion script linking against lib_NOTFOUND
Parents
rSTAGING72f4670444b5: [CMAKE] Determine the Qt library directory from a public variable
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/8592, tag: phabricator/base/8591