Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2246

CMake target_include_directories

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • 3.3.0
    • Build

    Description

      I would like to use CMake's FetchContent with Xerces.
      Unfortunately, since Xerces does not specify its include directories, this is not possible.

      The fix is really easy and short:

      Update src/CMakeLists.txt with the following code:

      target_include_directories(
        xerces-c
        PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
      )
      

      Attachments

        Activity

          People

            scantor Scott Cantor
            carlocorradini Carlo Corradini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified