[clang-tools-extra] 0c53f60 - [clangd] Add some more missing include dirs for completeness

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 2 00:05:02 PDT 2021


Author: Sam McCall
Date: 2021-07-02T09:04:53+02:00
New Revision: 0c53f602d5a9d7207abb13e463f68e9d092f47a7

URL: https://github.com/llvm/llvm-project/commit/0c53f602d5a9d7207abb13e463f68e9d092f47a7
DIFF: https://github.com/llvm/llvm-project/commit/0c53f602d5a9d7207abb13e463f68e9d092f47a7.diff

LOG: [clangd] Add some more missing include dirs for completeness

Added: 
    

Modified: 
    clang-tools-extra/clangd/benchmarks/CMakeLists.txt
    clang-tools-extra/clangd/indexer/CMakeLists.txt
    clang-tools-extra/clangd/unittests/xpc/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/benchmarks/CMakeLists.txt b/clang-tools-extra/clangd/benchmarks/CMakeLists.txt
index b62ffd7a1ad16..7a17637b6c377 100644
--- a/clang-tools-extra/clangd/benchmarks/CMakeLists.txt
+++ b/clang-tools-extra/clangd/benchmarks/CMakeLists.txt
@@ -1,4 +1,5 @@
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..
+  ${CMAKE_CURRENT_BINARY_DIR}/..)
 
 add_subdirectory(CompletionModel)
 

diff  --git a/clang-tools-extra/clangd/indexer/CMakeLists.txt b/clang-tools-extra/clangd/indexer/CMakeLists.txt
index ff110693c7066..f6389654b3628 100644
--- a/clang-tools-extra/clangd/indexer/CMakeLists.txt
+++ b/clang-tools-extra/clangd/indexer/CMakeLists.txt
@@ -1,4 +1,5 @@
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../)
+include_directories(${CMAKE_CURRENT_BINARY_DIR}/../)
 
 set(LLVM_LINK_COMPONENTS
     Support

diff  --git a/clang-tools-extra/clangd/unittests/xpc/CMakeLists.txt b/clang-tools-extra/clangd/unittests/xpc/CMakeLists.txt
index 21a1667b52d37..372528d1e82d3 100644
--- a/clang-tools-extra/clangd/unittests/xpc/CMakeLists.txt
+++ b/clang-tools-extra/clangd/unittests/xpc/CMakeLists.txt
@@ -4,8 +4,11 @@ set(LLVM_LINK_COMPONENTS
 
 get_filename_component(CLANGD_SOURCE_DIR
   ${CMAKE_CURRENT_SOURCE_DIR}/../../clangd REALPATH)
+get_filename_component(CLANGD_BINARY_DIR
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../clangd REALPATH)
 include_directories(
   ${CLANGD_SOURCE_DIR}
+  ${CLANGD_BINARY_DIR}
   )
 
 add_custom_target(ClangdXpcUnitTests)


        


More information about the cfe-commits mailing list