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

CMake target_include_directories

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • 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

            Unassigned Unassigned
            carlocorradini Carlo Corradini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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