[Lldb-commits] [PATCH] D57995: [lldb] [cmake] Use install directories for LLVM_* variables
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 12 02:24:50 PST 2019
mgorny updated this revision to Diff 186427.
mgorny added a comment.
Updated to use exported LLVM_MAIN_INCLUDE_DIR, as introduced by D58109 <https://reviews.llvm.org/D58109>. This works both for build-tree and install-tree, and avoids having to introduce any conditionals.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57995/new/
https://reviews.llvm.org/D57995
Files:
lldb/cmake/modules/LLDBStandalone.cmake
Index: lldb/cmake/modules/LLDBStandalone.cmake
===================================================================
--- lldb/cmake/modules/LLDBStandalone.cmake
+++ lldb/cmake/modules/LLDBStandalone.cmake
@@ -20,9 +20,9 @@
set(LLVM_CMAKE_PATH ${LLVM_CMAKE_DIR} CACHE PATH "Path to LLVM CMake modules")
set(LLVM_MAIN_SRC_DIR ${LLVM_BUILD_MAIN_SRC_DIR} CACHE PATH "Path to LLVM source tree")
- set(LLVM_MAIN_INCLUDE_DIR ${LLVM_BUILD_MAIN_INCLUDE_DIR} CACHE PATH "Path to llvm/include")
- set(LLVM_LIBRARY_DIR ${LLVM_BUILD_LIBRARY_DIR} CACHE PATH "Path to llvm/lib")
- set(LLVM_BINARY_DIR ${LLVM_BUILD_BINARY_DIR} CACHE PATH "Path to LLVM build tree")
+ set(LLVM_MAIN_INCLUDE_DIR ${LLVM_MAIN_INCLUDE_DIR} CACHE PATH "Path to llvm/include")
+ set(LLVM_LIBRARY_DIR ${LLVM_LIBRARY_DIR} CACHE PATH "Path to llvm/lib")
+ set(LLVM_BINARY_DIR ${LLVM_BINARY_DIR} CACHE PATH "Path to LLVM build tree")
set(LLVM_DEFAULT_EXTERNAL_LIT ${LLVM_TOOLS_BINARY_DIR}/llvm-lit CACHE PATH "Path to llvm-lit")
if(CMAKE_CROSSCOMPILING)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57995.186427.patch
Type: text/x-patch
Size: 1030 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190212/5bba076d/attachment.bin>
More information about the lldb-commits
mailing list