build: add binary dir to the unittests
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 10 Apr 2019 17:25:14 +0000 (17:25 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 10 Apr 2019 17:25:14 +0000 (17:25 +0000)
Missed part of the change to make clangd build on Darwin.  Fixes the build after
SVN r358103.

llvm-svn: 358107

clang-tools-extra/unittests/clangd/CMakeLists.txt

index 6749468..c908541 100644 (file)
@@ -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_BINARY_DIR}/../../clangd REALPATH)
 include_directories(
   ${CLANGD_SOURCE_DIR}
+  ${CLANGD_BINARY_DIR}
   )
 
 add_extra_unittest(ClangdTests