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
Branch
cmake_fix_link_libs_not_found
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5707
Build 9476: Bitcoin ABC Buildbot (legacy)
Build 9475: arc lint + arc unit