Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8285

Simplify CMakes use of third party libraries

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.1, 5.2.0, 5.0.5
    • None
    • None
    • 5
    • Storage - Ra 2021-11-01

    Description

      The intent of this ticket is to simplify and clean up how we include third party libraries in CMake. There's a few minor improvements we can make to how we define and include external libraries:

      • Splitting library includes for the wiredtiger library target between 'PUBLIC' and 'PRIVATE'
        • i.e. Our various test binaries link against the wiredtiger target and transitively inherit any libraries on the PUBLIC interface. We ideally want to control this to avoid binaries inheriting unnecessary libraries.
      • Move each third party library under an imported library target that the rest of the CMake project can link against.
        • This centralizing the paths associated with a library under a single target. In-turn reducing unnecessary includes.

      Attachments

        Activity

          People

            alison.felizzi@mongodb.com Alison Felizzi (Inactive)
            alison.felizzi@mongodb.com Alison Felizzi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: