Displaying 1 result from an estimated 1 matches for "llvm_cmake_dir".
2010 Jun 18
1
[LLVMdev] export of CMake project
...b${LLVM_LIBDIR_SUFFIX}
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
...
At the end of the main CMakeLists.txt we need to install the LLVM export
file:
# install LLVM package
install(EXPORT LLVM DESTINATION cmake)
In my own project I just need to do the following:
# import llvm
find_path(LLVM_CMAKE_DIR llvm.cmake)
include(${LLVM_CMAKE_DIR}/llvm.cmake)
...
# set dependencies
target_link_libraries(MyProjectUsingLLVM
LLVMSupport
LLVMSystem
... all llvm and cmake libs ...
)
-Jochen
-- here the patch for llvm --
Index: cmake/modules/AddLLVM.cmake
================================================...