No llvm-config.exe or LLVMConfig.cmake in pre-built Windows?

I have a downstream project that uses llvm. My project has used GitHub Actions for CI for a long time on Linux and MacOS, and as I am trying to add Windows to our CI tests, it seems that the pre-built Windows installations from don't contain llvm-config.exe, nor any LLVMConfig.cmake as far as I can tell. So my CMake build system is a little lost.

How are the pre-built Windows LLVM installations expected to be found by CMake find_package? What am I missing?

I'm trying to avoid building LLVM from scratch because I don't think I can do it in a reasonable amount of CI time (and even if I could, it would be an order of magnitude more time than building my downstream package and running its extensive test suite).

How do other people address this issue?

1 Like

At this time the pre-build Windows LLVM doesn’t contain the LLVMConfig.cmake, alternatively you can write your own FindLLVM.config.

The Windows pre-built packages don’t contain the libraries or make files you need to link to LLVM. It’s only a clang/llvm toolchain package. I am sure there are other third-party packages of the windows libraries out there if you want to avoid building it yourself, but I don’t know any specific ones.