[Debuginfod] Check libcurl via CMake library.
authorDaniel Thornburgh <dthorn@google.com>
Mon, 14 Mar 2022 23:23:08 +0000 (23:23 +0000)
committerDaniel Thornburgh <dthorn@google.com>
Tue, 15 Mar 2022 18:26:25 +0000 (18:26 +0000)
commit1da2c5ba09aba541cc5dc44bb087999be57bacbe
tree528ee31597eba48ac8fe81bff33169a19d16d186
parent687d20de7ffc69dd4ecdb9808aeb6d3cffcf3871
[Debuginfod] Check libcurl via CMake library.

If libcurl was built with CMake, CMake's FindCURL module defers
completely to the included config file. This config file doesn't set any
of the variables that the current check script depends on; it just sets
up an imported CMake target. Accordingly, the smoke test fails, since it
can't find the libcurl (or its static dependencies).

This changes the compile smoke test to refer to the imported library
instead; this should in turn bring in the necessary include and library
directories via the interface properties set up by CMake. This better
mirrors the way libcurl is referred to elsewhere in the CMakeLists.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D121718
llvm/cmake/config-ix.cmake