[LLVMbugs] [Bug 19462] New: Use the INSTALL(EXPORT ...) to export CMake definitions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 17 04:19:21 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19462
Bug ID: 19462
Summary: Use the INSTALL(EXPORT ...) to export CMake
definitions
Product: Build scripts
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: jesper at eskilson.se
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
>From the CMake manual: "The EXPORT form generates and installs a CMake file
containing code to import targets from the installation tree into another
project."
This would add a .cmake file to the installation which users can import in
their CMakeLists.txt to gain access to all the targets defined in the LLVM tree
as if they were themselves part of the tree. Users can then do:
# User's CMakeLists.txt
include(/path/to/LLVM/exports.cmake)
add_executable(mytool ...)
target_link_libraries(mytool clangTooling)
No further configuration would be necessary. Without this feature, finding all
the libraries you need to link with can be pretty cumbersome.
I hope to be able to contribute a patch for this myself, but it would be good
to get any feedback from other developers as well.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140417/99e4ff56/attachment.html>
More information about the llvm-bugs
mailing list