Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install target missing LLVMConfig.cmake on Windows #60570

Closed
rnichollx opened this issue Feb 6, 2023 · 3 comments
Closed

Install target missing LLVMConfig.cmake on Windows #60570

rnichollx opened this issue Feb 6, 2023 · 3 comments

Comments

@rnichollx
Copy link

rnichollx commented Feb 6, 2023

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.

@tatlook
Copy link

tatlook commented Feb 12, 2023

I had same problem with both LLVM-15.0.7-win32.exe and LLVM-15.0.7-win64.exe.

@rnichollx rnichollx changed the title Missing LLVMConfig.cmake on Windows Install target missing LLVMConfig.cmake on Windows Feb 16, 2023
@ebrianne
Copy link

ebrianne commented Aug 9, 2023

Can something be followed up on this?

@zmodem
Copy link
Collaborator

zmodem commented Sep 18, 2023

Duplicate of #53052

@zmodem zmodem marked this as a duplicate of #53052 Sep 18, 2023
@zmodem zmodem closed this as completed Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants