[ 
https://issues.apache.org/jira/browse/XERCESC-2246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carlo Corradini updated XERCESC-2246:
-------------------------------------
    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:
{code:cmake}
target_include_directories(
  xerces-c
  PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)
{code}

  was:
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}>
)


> CMake target_include_directories
> --------------------------------
>
>                 Key: XERCESC-2246
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2246
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Carlo Corradini
>            Priority: Major
>              Labels: buid, cmake
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> 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:
> {code:cmake}
> target_include_directories(
>   xerces-c
>   PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
> )
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to