[PATCH] D115189: [Support] [Debuginfod] Include curl include dirs when curl is enabled. (WIP)

Noah Shutty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 6 14:39:46 PST 2021


noajshu created this revision.
noajshu added a reviewer: kpn.
Herald added subscribers: hiraditya, mgorny.
noajshu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

A report on llvm-dev <https://lists.llvm.org/pipermail/llvm-dev/2021-December/154203.html> indicated that `curl.h` could be found during build configuration but not during compilation. This diff asks cmake to include the include dirs of the found curl, similar to the approach when building with Z3.


https://reviews.llvm.org/D115189

Files:
  llvm/lib/Support/CMakeLists.txt


Index: llvm/lib/Support/CMakeLists.txt
===================================================================
--- llvm/lib/Support/CMakeLists.txt
+++ llvm/lib/Support/CMakeLists.txt
@@ -314,3 +314,10 @@
     ${Z3_INCLUDE_DIR}
     )
 endif()
+
+if(LLVM_ENABLE_CURL)
+  target_include_directories(LLVMSupport SYSTEM
+    PRIVATE
+    ${CURL_INCLUDE_DIRS}
+    )
+endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115189.392185.patch
Type: text/x-patch
Size: 367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211206/3a91937f/attachment.bin>


More information about the llvm-commits mailing list