Page MenuHomePhabricator

[CMAKE] Fix the prl conversion script linking against lib_NOTFOUND
ClosedPublic

Authored by Fabien on May 6 2019, 23:43.

Details

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.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable