Skip to content
Conan package for LLVM 6.0
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test_package
.gitignore
.travis.yml
README.md
conanfile.py

README.md

A sample project to demonstrate how to create Conan package for LLVM 6.0.

Build LLVM into local cache

$ conon create . LLVM/release_60

See it in action:

asciicast

Use LLVM in local cache

Create a file named conanfile.txt in your project folder:

[requires]
LLVM/release_60@LLVM/release_60

[generators]
cmake

Add the following snippet to your CMakeLists.txt:

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()

Add ${CONAN_INCLUDE_DIRS} to your include directories and ${CONAN_LIBS} to your link libraries.

Create conanbuildinfo.cmake assuming using build folder 'build/':

$ mkdir build && cd build
$ conan install ..
You can’t perform that action at this time.