Issue 60570
Summary Missing LLVMConfig.cmake on Windows
Labels new issue
Assignees
Reporter rnichollx
    ```
find_package(LLVM REQUIRED)
```

Does not work on Windows using the Windows installer for LLVM by default.

```
CMake Error at CMakeLists.txt:4 (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.
```

A file should be generated by the installer at a location such as C:\Program Files\LLVM\cmake\LLVMConfig.cmake to enable automatic detection of LLVM to work.


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to