After having run brew install enzyme on WSL, the following CMakeLists.txt fails
cmake_minimum_required(VERSION 3.20)
find_package(Enzyme REQUIRED CONFIG) # must install enzyme & lld through Brew / Spack
set(CMAKE_CXX_COMPILER "${Enzyme_LLVM_BINARY_DIR}/bin/clang++")
With the following error:
CMake Error at CMakeLists.txt:7 (project):The CMAKE_CXX_COMPILER:
/home/linuxbrew/.linuxbrew/Cellar/llvm/22.1.1/bin/clang++
is not a full path to an existing compiler tool.
My correct LLVM path is /home/linuxbrew/.linuxbrew/Cellar/llvm/22.1.2.
Is this a small bug with Enzyme or an issue with how I have installed it?