-
-
Notifications
You must be signed in to change notification settings - Fork 262
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I followed this page (Building Clang and Working with the Code, On Unix-like Systems) to download and build the clang source tree. The source tree looks just like this one. When building cppinsights inside clang (as mentioned in Readme.md) I encountered the following problems:
- The path
llvm/tools/clang/tools/extradoes not exist.find . -name extragives only./llvm/test/tools/llvm-cov/Inputs/sources_specified/extra. I found the directory calledclang-tools-extrawhich seems to be the right place since it contains other tools likeclang-tidyandclang-query. Then I clonedcppinsightshere and addedadd_subdirectory(cppinsights)intoclang-tools-extra/CMakeLists.txt. cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -G "Unix Makefiles" ../llvmgives the following error:
CMake Error at cmake/modules/LLVM-Config.cmake:106 (get_target_property):
get_target_property() called with non-existent target "LLVM_INCLUDE_DIR".
Call Stack (most recent call first):
cmake/modules/LLVM-Config.cmake:98 (explicit_llvm_config)
/home/gkxx/install/llvm-project/clang-tools-extra/cppinsights/CMakeLists.txt:442 (llvm_config)I have no idea how to fix this.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working