tree -L 2 /Volumes/source_codes/enzyme-da/
/Volumes/source_codes/enzyme-da/
├── Enzyme
│ ├── CITATION.bib
│ ├── CONTRIBUTING.md
│ ├── LICENSE
│ ├── Readme.md
│ ├── build
│ └── enzyme
└── llvm-project
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── README.md
├── bolt
├── build
├── clang
├── clang-tools-extra
├── cmake
├── compiler-rt
├── cross-project-tests
├── flang
├── libc
├── libclc
├── libcxx
├── libcxxabi
├── libunwind
├── lld
├── lldb
├── llvm
├── llvm-libgcc
├── mlir
├── pyproject.toml
├── runtimes
├── third-party
└── utils
now in the `build` directory I created under `Enzyme`, I run:
cmake -G Ninja ../enzyme/ -DLLVM_DIR=../../llvm-project/llvm/cmake/
LLVM_SHLIBEXT=.dylib
LLVM ABS DIR /Volumes/source_codes/enzyme-da/llvm-project/llvm/cmake
CMAKE_PREFIX_PATH
CMake Error at CMakeLists.txt:69 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/Volumes/source_codes/enzyme-da/Enzyme/enzyme/CMakeFiles/CMakeOutput.log".
See also "/Volumes/source_codes/enzyme-da/Enzyme/enzyme/CMakeFiles/CMakeError.log".
Lucass-MacBook:enzyme rlucas$ clang -v
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin