[PATCH] D56531: [CMake] Replace use of llvm-config with LLVM and Clang CMake packages

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 9 04:29:31 PST 2019


mgorny added inline comments.


================
Comment at: lldb/trunk/cmake/modules/LLDBStandalone.cmake:20
+  # We set LLVM_MAIN_INCLUDE_DIR so that it gets included in TableGen flags.
+  set(LLVM_MAIN_INCLUDE_DIR "${LLVM_BUILD_MAIN_INCLUDE_DIR}" CACHE PATH "Path to LLVM's source include dir")
+  # We set LLVM_CMAKE_PATH so that GetSVN.cmake is found correctly when building SVNVersion.inc
----------------
Apparently the idea of using `LLVM_BUILD_MAIN_INCLUDE_DIR` is plain wrong here. The old code used the equivalent of `LLVM_INCLUDE_DIR` (i.e. the include dir of *installed* LLVM) and I think the new code should use the same. Given how long the old code was there, I suppose there shouldn't be any use case broken by using that directory.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56531/new/

https://reviews.llvm.org/D56531





More information about the llvm-commits mailing list