When adding llvm to a build with add_subdirectory, CMAKE_SOURCE_DIR
refers to the source directory of the parent project. We want to use
PROJECT_SOURCE_DIR instead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, thanks! In particular the fix to include/llvm/TargetParser/CMakeLists.txt fixes a build error when LLVM is included as a sub-project and the RISCV target is not being built. @fpetrogalli FYI