[Lldb-commits] [PATCH] D14166: Correctly include LLVM_EXTERNAL_CLANG_SOURCE_DIR.
Chaoren Lin via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 28 17:39:46 PDT 2015
chaoren created this revision.
chaoren added reviewers: sas, ovyalov.
chaoren added a subscriber: lldb-commits.
http://reviews.llvm.org/D14166
Files:
cmake/modules/LLDBConfig.cmake
Index: cmake/modules/LLDBConfig.cmake
===================================================================
--- cmake/modules/LLDBConfig.cmake
+++ cmake/modules/LLDBConfig.cmake
@@ -194,7 +194,11 @@
add_definitions( -DLLDB_DISABLE_PYTHON )
endif()
-include_directories(${CMAKE_SOURCE_DIR}/tools/clang/include)
+if (LLVM_EXTERNAL_CLANG_SOURCE_DIR)
+ include_directories(${LLVM_EXTERNAL_CLANG_SOURCE_DIR}/include)
+else ()
+ include_directories(${CMAKE_SOURCE_DIR}/tools/clang/include)
+endif ()
include_directories("${CMAKE_CURRENT_BINARY_DIR}/../clang/include")
# Disable GCC warnings
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14166.38700.patch
Type: text/x-patch
Size: 595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151029/6433e8de/attachment.bin>
More information about the lldb-commits
mailing list