[jira] [Resolved] (XERCESC-2246) CMake target_include_directories

"Scott Cantor (Jira)" <[email protected]> Tue, 24 Sep 2024 12:49:00 +0000 (UTC)
Newsgroups gmane.text.xml.xerces-c.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/XERCESC-2246?page=3Dcom.atlass=
ian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor resolved XERCESC-2246.
-----------------------------------
    Resolution: Done

Applied to 3.3 branch.

> 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
>            Assignee: Scott Cantor
>            Priority: Major
>              Labels: buid, cmake
>             Fix For: 3.3.0
>
>   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, thi=
s is not possible.
> The fix is really easy and short:
> Update src/CMakeLists.txt with the following code:
> {code}
> target_include_directories(
> =C2=A0 xerces-c
> =C2=A0 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
> )
> {code}



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