[all-commits] [llvm/llvm-project] 1da2c5: [Debuginfod] Check libcurl via CMake library.

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Tue Mar 15 11:26:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1da2c5ba09aba541cc5dc44bb087999be57bacbe
      https://github.com/llvm/llvm-project/commit/1da2c5ba09aba541cc5dc44bb087999be57bacbe
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2022-03-15 (Tue, 15 Mar 2022)

  Changed paths:
    M llvm/cmake/config-ix.cmake

  Log Message:
  -----------
  [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




More information about the All-commits mailing list