Skip to content

Commit 2c32141

Browse files
mgornytstellar
authored andcommitted
[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 3c9f34c)
1 parent b79e6a3 commit 2c32141

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/cmake/modules/LLVMConfig.cmake.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ if(LLVM_ENABLE_CURL)
9090
find_package(CURL)
9191
endif()
9292

93+
set(LLVM_ENABLE_HTTPLIB @LLVM_ENABLE_HTTPLIB@)
94+
if(LLVM_ENABLE_HTTPLIB)
95+
find_package(httplib)
96+
endif()
97+
9398
set(LLVM_WITH_Z3 @LLVM_WITH_Z3@)
9499

95100
set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)

0 commit comments

Comments
 (0)