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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to