[all-commits] [llvm/llvm-project] 2c3214: [llvm] [cmake] Include httplib in LLVMConfig.cmake...

Michał Górny via All-commits all-commits at lists.llvm.org
Mon Jan 29 10:26:30 PST 2024


  Branch: refs/heads/release/18.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c3214135ffa8e3f9ab61d12521637532126f368
      https://github.com/llvm/llvm-project/commit/2c3214135ffa8e3f9ab61d12521637532126f368
  Author: Michał Górny <mgorny at gentoo.org>
  Date:   2024-01-29 (Mon, 29 Jan 2024)

  Changed paths:
    M llvm/cmake/modules/LLVMConfig.cmake.in

  Log Message:
  -----------
  [llvm] [cmake] Include httplib in LLVMConfig.cmake (#79305)

Include LLVM_ENABLE_HTTPLIB along with httplib package finding in
LLVMConfig.cmake, as this dependency is needed by LLVMDebuginfod that is
now used by LLDB. Without it, building LLDB standalone fails with:

```
CMake Error at /usr/lib/llvm/19/lib64/cmake/llvm/LLVMExports.cmake:90 (set_target_properties):
  The link interface of target "LLVMDebuginfod" contains:

    httplib::httplib

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /usr/lib/llvm/19/lib64/cmake/llvm/LLVMConfig.cmake:357 (include)
  cmake/modules/LLDBStandalone.cmake:9 (find_package)
  CMakeLists.txt:34 (include)
```

(cherry picked from commit 3c9f34c12450345c6eb524e47cf79664271e4260)




More information about the All-commits mailing list