[Lldb-commits] [lldb] r251530 - Avoid using `..` in paths for include dirs.

Stephane Sezer via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 28 10:34:47 PDT 2015


Author: sas
Date: Wed Oct 28 12:34:45 2015
New Revision: 251530

URL: http://llvm.org/viewvc/llvm-project?rev=251530&view=rev
Log:
Avoid using `..` in paths for include dirs.

Summary:
This breaks when using a symlink from llvm/tools/lldb to the lldb source
tree, instead of cloning directly as a child. With this change, we can
build properly, even when using links.

Reviewers: dawn, brucem, zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D14089

Modified:
    lldb/trunk/cmake/modules/LLDBConfig.cmake

Modified: lldb/trunk/cmake/modules/LLDBConfig.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/modules/LLDBConfig.cmake?rev=251530&r1=251529&r2=251530&view=diff
==============================================================================
--- lldb/trunk/cmake/modules/LLDBConfig.cmake (original)
+++ lldb/trunk/cmake/modules/LLDBConfig.cmake Wed Oct 28 12:34:45 2015
@@ -194,7 +194,7 @@ if (LLDB_DISABLE_PYTHON)
   add_definitions( -DLLDB_DISABLE_PYTHON )
 endif()
 
-include_directories(../clang/include)
+include_directories(${CMAKE_SOURCE_DIR}/tools/clang/include)
 include_directories("${CMAKE_CURRENT_BINARY_DIR}/../clang/include")
 
 # Disable GCC warnings




More information about the lldb-commits mailing list