Guest User

Untitled

a guest
Jun 29th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. CMake Error at src/CMakeLists.txt:5 (find_package):
  2. Could not find a package configuration file provided by "LLVM" with any of
  3. the following names:
  4.  
  5. LLVMConfig.cmake
  6. llvm-config.cmake
  7.  
  8. Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
  9. "LLVM_DIR" to a directory containing one of the above files. If "LLVM"
  10. provides a separate development package or SDK, be sure it has been
  11. installed.
  12.  
  13. cmake_minimum_required(VERSION 2.8)
  14. project(sample)
  15. # 明示的にLLVM_DIRを指定するとエラーが消えるが環境依存になってしまう
  16. set(LLVM_DIR /usr/local/Cellar/llvm/3.5.1/share/llvm/cmake)
  17. find_package(LLVM REQUIRED CONFIG)
  18.  
  19. cmake -D LLVM_DIR=/path/to/LLVMConfig.cmake
  20.  
  21. CC=clang cmake .
Add Comment
Please, Sign In to add comment