Skip to content

Could not find a package configuration file #72

@DrengrCoder

Description

@DrengrCoder

I've gone through a process of installing LLVM based on instructions from these two webpages:

There was an error due to numeric_limits not being a member of std but I believe I solved that or worked around it

And then attempting to install cppnamelint, but I get an error when trying to run:

cmake .. -DLLVM_INSTALL_DIR="~\llvm\llvm-prebuilt\llvmorg-11.1.0-ninja-gcc-x64-rel"

as follows:

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

Unsure what the problem is, as I believe I've set the environment variables but I may have set them wrong, I've set them to all the locations LLVMConfig.cmake exist but rerunning the command still produces the same error, would anyone also know what I need to do to set these correctly please?

I could also be doing something wrong in my build steps, but any help is greatly appreciated, thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions